From 4098890c05a958b55ca1d310719bbaf7798ccf16 Mon Sep 17 00:00:00 2001 From: bcolsen Date: Tue, 7 Jul 2020 17:54:21 -0600 Subject: [PATCH] changed error to report previous column name --- galvani/BioLogic.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/galvani/BioLogic.py b/galvani/BioLogic.py index bb36234..1758ab5 100644 --- a/galvani/BioLogic.py +++ b/galvani/BioLogic.py @@ -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