Skip to content

Commit bbebdd6

Browse files
committed
Checked passed-wells file in script test
1 parent a07bb0d commit bbebdd6

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

pcpostprocess/scripts/run_herg_qc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import string
1212
import sys
1313

14-
import cycler
1514
import matplotlib
1615
import matplotlib.pyplot as plt
1716
import numpy as np

pcpostprocess/scripts/summarise_herg_export.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import argparse
22
import json
3-
import logging
43
import os
54
import string
65

7-
import cycler
86
import matplotlib
97
import matplotlib.pyplot as plt
108
import numpy as np
@@ -121,7 +119,7 @@ def run(data_path, output_path, experiment_name, reversal_potential=None,
121119
leak_parameters_df['protocol'], categories=protocol_order, ordered=True)
122120

123121
leak_parameters_df.sort_values(['protocol', 'sweep'], inplace=True)
124-
except FileNotFoundError as exc:
122+
except FileNotFoundError:
125123
leak_parameters_df.sort_values(['protocol', 'sweep'])
126124

127125
scatterplot_timescale_E_obs(output_path, leak_parameters_df, passed_wells, figsize)

tests/test_scripts.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ def test_run_herg_qc_and_summarise_herg_export(self):
3333
write_traces=True, write_map=write_map,
3434
save_id='13112023_MW2', reversal_potential=erev)
3535

36+
with open(os.path.join(d1, 'passed_wells.txt'), 'r') as f:
37+
self.assertEqual(f.read().strip(), 'A03')
38+
3639
# Test summarise herg export
3740
run_summarise(d1, d2, '13112023_MW2', reversal_potential=erev)
3841

3942

4043
if __name__ == '__main__':
41-
store_output=True
44+
store_output = True
4245
unittest.main()
4346

0 commit comments

Comments
 (0)