diff --git a/galvani/BioLogic.py b/galvani/BioLogic.py index 6dc9287..44b1d07 100644 --- a/galvani/BioLogic.py +++ b/galvani/BioLogic.py @@ -507,7 +507,7 @@ def __init__(self, file_or_path): column_types = np.frombuffer( data_module["data"][5:], dtype="u1", count=n_columns ) - remaining_headers = data_module["data"][5 + n_columns : 100] + remaining_headers = data_module["data"][5 + n_columns:100] main_data = data_module["data"][100:] elif data_module["version"] in [2, 3]: column_types = np.frombuffer( @@ -518,7 +518,7 @@ def __init__(self, file_or_path): num_bytes_before = 406 # version 3 added `\x01` to the start else: num_bytes_before = 405 - remaining_headers = data_module["data"][5 + 2 * n_columns : 405] + remaining_headers = data_module["data"][5 + 2 * n_columns:405] main_data = data_module["data"][num_bytes_before:] else: raise ValueError( diff --git a/galvani/res2sqlite.py b/galvani/res2sqlite.py index 070b987..2329473 100755 --- a/galvani/res2sqlite.py +++ b/galvani/res2sqlite.py @@ -456,7 +456,7 @@ def mdb_get_data_text(s3db, filename, table): while len(mdb_output) > 0: insert_match = insert_pattern.match(mdb_output) s3db.execute(insert_match.group()) - mdb_output = mdb_output[insert_match.end() :] + mdb_output = mdb_output[insert_match.end():] mdb_output += mdb_sql.stdout.read() s3db.commit()