From 0b26c7e81eef22eb617b486394e9753243cb2c5f Mon Sep 17 00:00:00 2001 From: "a.ott" Date: Wed, 20 May 2020 16:21:01 +0200 Subject: [PATCH] use ref to data for tests --- unittests/testHelperFunctions.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/unittests/testHelperFunctions.py b/unittests/testHelperFunctions.py index a64c4c8..8dabde4 100644 --- a/unittests/testHelperFunctions.py +++ b/unittests/testHelperFunctions.py @@ -40,7 +40,10 @@ class HelperFunctionsTester(unittest.TestCase): def test_detect_spiketimes(self): count = 0 - for cell_data in icelldata_of_dir("./test_data/"): + for cell_data in icelldata_of_dir("../data/"): + if os.path.basename(cell_data.get_data_path()) not in self.reference_base_spikes: + continue + print(cell_data.get_data_path()) # if "21-ai" not in cell_data.get_data_path() and "20-ac" not in cell_data.get_data_path(): # continue @@ -71,7 +74,7 @@ class HelperFunctionsTester(unittest.TestCase): count += 1 def test_automatic_splitting(self): - for cell_data in icelldata_of_dir("./test_data/"): + for cell_data in icelldata_of_dir("../data/"): print(cell_data.get_data_path()) v1 = cell_data.get_base_traces(cell_data.V1)[0]