From 3cf6bca02735b507ead339957a0038045f01c373 Mon Sep 17 00:00:00 2001 From: Tim <16023856+bayesfactor@users.noreply.github.com> Date: Tue, 10 Jul 2018 22:42:23 -0700 Subject: [PATCH] improved parsing for PEIS files I found some new column types and a new placement of the ole_timestamp for PEIS files --- galvani/BioLogic.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/galvani/BioLogic.py b/galvani/BioLogic.py index e5bdb17..7fa4017 100644 --- a/galvani/BioLogic.py +++ b/galvani/BioLogic.py @@ -212,6 +212,10 @@ def VMPdata_dtype_from_colIDs(colIDs): dtype_dict['Capacitance discharge/µF'] = ' 40000 and ole_timestamp1 < 50000: ole_timestamp = ole_timestamp1 elif ole_timestamp2 > 40000 and ole_timestamp2 < 50000: ole_timestamp = ole_timestamp2 elif ole_timestamp3 > 40000 and ole_timestamp3 < 50000: ole_timestamp = ole_timestamp3 + elif ole_timestamp4 > 40000 and ole_timestamp4 < 50000: + ole_timestamp = ole_timestamp4 + else: raise ValueError("Could not find timestamp in the LOG module")