Skip to content

Commit b119768

Browse files
committed
revert
1 parent aa96fe3 commit b119768

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datajoint/fetch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def __call__(
286286
ret = np.array(ret, dtype=record_type)
287287
except Exception as e:
288288
raise e
289-
for name in heading.names:
289+
for name in heading:
290290
# unpack blobs and externals
291291
ret[name] = list(map(partial(get, heading[name]), ret[name]))
292292
if format == "frame":

datajoint/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ def check_fields(fields):
859859
raise KeyError(
860860
"`{0:s}` is not in the table heading".format(field)
861861
)
862-
elif set(field_list) != set(fields).intersection(self.heading):
862+
elif set(field_list) != set(fields).intersection(self.heading.names):
863863
raise DataJointError("Attempt to insert rows with different fields.")
864864

865865
if isinstance(row, np.void): # np.array

0 commit comments

Comments
 (0)