diff --git a/galvani/BioLogic.py b/galvani/BioLogic.py index a307f74..41052f5 100644 --- a/galvani/BioLogic.py +++ b/galvani/BioLogic.py @@ -278,6 +278,7 @@ class MPRfile: """ def __init__(self, file_or_path): + self.loop_index = None if isinstance(file_or_path, str): mpr_file = open(file_or_path, 'rb') else: @@ -292,6 +293,7 @@ class MPRfile: self.modules = modules settings_mod, = (m for m in modules if m['shortname'] == b'VMP Set ') data_module, = (m for m in modules if m['shortname'] == b'VMP data ') + maybe_loop_module = [m for m in modules if m['shortname'] == b'VMP loop '] maybe_log_module = [m for m in modules if m['shortname'] == b'VMP LOG '] n_data_points = np.frombuffer(data_module['data'][:4], dtype='