changed error to report previous column name

This commit is contained in:
bcolsen
2020-07-07 17:54:21 -06:00
parent 68bac0a5aa
commit 4098890c05

View File

@@ -237,10 +237,8 @@ def VMPdata_dtype_from_colIDs(colIDs):
unique_field_name = field_name unique_field_name = field_name
type_list.append((unique_field_name, field_type)) type_list.append((unique_field_name, field_type))
else: else:
print('ColIDs: ', raise NotImplementedError("Column ID {cid} after column {prev} "
[colID for colID in colIDs if colID not in VMPdata_colID_flag_map]) "is unknown".format(cid=colID, prev=type_list[-1][0]))
print('Types: ', type_list[1:])
raise NotImplementedError("column type %d not implemented" % colID)
return np.dtype(type_list), flags_dict return np.dtype(type_list), flags_dict