diff --git a/galvani/BioLogic.py b/galvani/BioLogic.py index 0fa07f0..c63342d 100644 --- a/galvani/BioLogic.py +++ b/galvani/BioLogic.py @@ -275,7 +275,7 @@ def read_VMP_modules(fileobj, read_module_data=True): if len(hdr_bytes) < VMPmodule_hdr.itemsize: raise IOError("Unexpected end of file while reading module header") - hdr = np.fromstring(hdr_bytes, dtype=VMPmodule_hdr, count=1) + hdr = np.frombuffer(hdr_bytes, dtype=VMPmodule_hdr, count=1) hdr_dict = dict(((n, hdr[n][0]) for n in VMPmodule_hdr.names)) hdr_dict['offset'] = fileobj.tell() if read_module_data: @@ -326,17 +326,17 @@ class MPRfile: data_module, = (m for m in modules if m['shortname'] == b'VMP data ') maybe_log_module = [m for m in modules if m['shortname'] == b'VMP LOG '] - n_data_points = np.fromstring(data_module['data'][:4], dtype=' 40000 and ole_timestamp1 < 50000: