We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa96fe3 commit b119768Copy full SHA for b119768
2 files changed
datajoint/fetch.py
@@ -286,7 +286,7 @@ def __call__(
286
ret = np.array(ret, dtype=record_type)
287
except Exception as e:
288
raise e
289
- for name in heading.names:
+ for name in heading:
290
# unpack blobs and externals
291
ret[name] = list(map(partial(get, heading[name]), ret[name]))
292
if format == "frame":
datajoint/table.py
@@ -859,7 +859,7 @@ def check_fields(fields):
859
raise KeyError(
860
"`{0:s}` is not in the table heading".format(field)
861
)
862
- elif set(field_list) != set(fields).intersection(self.heading):
+ elif set(field_list) != set(fields).intersection(self.heading.names):
863
raise DataJointError("Attempt to insert rows with different fields.")
864
865
if isinstance(row, np.void): # np.array
0 commit comments