File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ def _newnames(datatype, order):
285
285
# Given an array with fields and a sequence of field names
286
286
# construct a new array with just those fields copied over
287
287
def _index_fields (ary , fields ):
288
- from multiarray import empty , dtype
288
+ from multiarray import empty , dtype , array
289
289
dt = ary .dtype
290
290
291
291
names = [name for name in fields if name in dt .names ]
@@ -298,7 +298,6 @@ def _index_fields(ary, fields):
298
298
# Return a copy for now until behavior is fully deprecated
299
299
# in favor of returning view
300
300
copy_dtype = {'names' :view_dtype ['names' ], 'formats' :view_dtype ['formats' ]}
301
- from numpy import array
302
301
return array (view , dtype = copy_dtype , copy = True )
303
302
304
303
# Given a string containing a PEP 3118 format specifier,
You can’t perform that action at this time.
0 commit comments