diff --git a/BioLogic.py b/BioLogic.py index 2f62c9d..4a402f3 100644 --- a/BioLogic.py +++ b/BioLogic.py @@ -9,6 +9,7 @@ from os import SEEK_SET, SEEK_CUR import time from datetime import date from collections import OrderedDict +from warnings import warn import numpy as np @@ -74,8 +75,7 @@ def MPTfile(file_or_path): "counter inc.", "time/s", "control/V", "Ewe/V", "/mA", "dQ/mA.h", "P/W"]) if fieldnames not in expected_fieldnames: - raise ValueError("Unrecognised headers for MPT file format %s" % - fieldnames) + warn("Unrecognised headers for MPT file format %s" % fieldnames) record_type = np.dtype(list(map(fieldname_to_dtype, fieldnames))) @@ -150,8 +150,11 @@ def VMPdata_dtype_from_colIDs(colIDs): dtype_dict['control/V/mA'] = '