Merge pull request #38 from bcolsen/col_168

Added RCMP column and column debug info
This commit is contained in:
2020-07-09 19:59:48 +03:00
committed by GitHub

View File

@@ -166,6 +166,7 @@ VMPdata_colID_dtype_map = {
125: ('Capacitance charge/µF', '<f8'),
126: ('Capacitance discharge/µF', '<f8'),
131: ('Ns', '<u2'),
168: ('Rcmp/Ohm', '<f4'),
169: ('Cs/µF', '<f4'),
172: ('Cp/µF', '<f4'),
434: ('(Q-Qo)/C', '<f4'),
@@ -236,7 +237,10 @@ def VMPdata_dtype_from_colIDs(colIDs):
unique_field_name = field_name
type_list.append((unique_field_name, field_type))
else:
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