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
type_list.append((unique_field_name, field_type))
else:
print('ColIDs: ',
[colID for colID in colIDs if colID not in VMPdata_colID_flag_map])
print('Types: ', type_list[1:])
raise NotImplementedError("column type %d not implemented" % colID)
raise NotImplementedError("Column ID {cid} after column {prev} "
"is unknown".format(cid=colID, prev=type_list[-1][0]))
return np.dtype(type_list), flags_dict