File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ def __call__(
286
286
ret = np .array (ret , dtype = record_type )
287
287
except Exception as e :
288
288
raise e
289
- for name in heading . names :
289
+ for name in heading :
290
290
# unpack blobs and externals
291
291
ret [name ] = list (map (partial (get , heading [name ]), ret [name ]))
292
292
if format == "frame" :
Original file line number Diff line number Diff line change @@ -859,7 +859,7 @@ def check_fields(fields):
859
859
raise KeyError (
860
860
"`{0:s}` is not in the table heading" .format (field )
861
861
)
862
- elif set (field_list ) != set (fields ).intersection (self .heading ):
862
+ elif set (field_list ) != set (fields ).intersection (self .heading . names ):
863
863
raise DataJointError ("Attempt to insert rows with different fields." )
864
864
865
865
if isinstance (row , np .void ): # np.array
You can’t perform that action at this time.
0 commit comments