This repository was archived by the owner on Feb 26, 2025. It is now read-only.
File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 43
43
logger = logging .getLogger (__name__ )
44
44
45
45
46
+ def cells_pickle_output_path (output_directory ):
47
+ """Returns the cells.pkl output file path
48
+
49
+ Args:
50
+ output_directory (Path): the output directory
51
+ """
52
+ return output_directory / "cells.pkl"
53
+
54
+
55
+ def protocols_pickle_output_path (output_directory ):
56
+ """Returns the protocols.pkl output file path
57
+
58
+ Args:
59
+ output_directory (Path): the output directory
60
+ """
61
+ return output_directory / "protocols.pkl"
62
+
63
+
46
64
def _create_cell (cell_definition , recording_reader , efel_settings = None ):
47
65
"""
48
66
Initialize a Cell object and populate it with the content of the associated
@@ -1037,8 +1055,8 @@ def extract_efeatures(
1037
1055
if pickle_cells :
1038
1056
path_cells = pathlib .Path (output_directory )
1039
1057
path_cells .mkdir (parents = True , exist_ok = True )
1040
- pickle .dump (cells , open (path_cells / "cells.pkl" , 'wb' ))
1041
- pickle .dump (protocols , open (path_cells / "protocols.pkl" , 'wb' ))
1058
+ pickle .dump (cells , open (cells_pickle_output_path ( path_cells ) , 'wb' ))
1059
+ pickle .dump (protocols , open (protocols_pickle_output_path ( path_cells ) , 'wb' ))
1042
1060
1043
1061
if plot :
1044
1062
plot_all_recordings_efeatures (
You can’t perform that action at this time.
0 commit comments