@@ -172,8 +172,8 @@ def getCoordinate(self, xind, zind, dx=0, dz=0):
172
172
"""
173
173
174
174
# Convert to NumPy arrays if not already
175
- xind = np .asfarray (xind )
176
- zind = np .asfarray (zind )
175
+ xind = np .asarray (xind )
176
+ zind = np .asarray (zind )
177
177
# Make sure dx and dz are integers
178
178
dx = int (dx )
179
179
dz = int (dz )
@@ -213,8 +213,8 @@ def findIndex(self, R, Z):
213
213
"""
214
214
215
215
# Make sure inputs are NumPy arrays
216
- R = np .asfarray (R )
217
- Z = np .asfarray (Z )
216
+ R = np .asarray (R )
217
+ Z = np .asarray (Z )
218
218
219
219
# Check that they have the same shape
220
220
assert R .shape == Z .shape
@@ -353,8 +353,8 @@ def findIndex(self, R, Z, tol=1e-10, show=False):
353
353
"""
354
354
355
355
# Make sure inputs are NumPy arrays
356
- R = np .asfarray (R )
357
- Z = np .asfarray (Z )
356
+ R = np .asarray (R )
357
+ Z = np .asarray (Z )
358
358
359
359
# Check that they have the same shape
360
360
assert R .shape == Z .shape
@@ -378,8 +378,8 @@ def findIndex(self, R, Z, tol=1e-10, show=False):
378
378
zind = ind - xind * nz
379
379
380
380
# Convert indices to float
381
- xind = np .asfarray (xind )
382
- zind = np .asfarray (zind )
381
+ xind = np .asarray (xind , dtype = float )
382
+ zind = np .asarray (zind , dtype = float )
383
383
384
384
# Create a mask for the positions
385
385
mask = np .ones (xind .shape )
0 commit comments