File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
element_array_ephys/readers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -116,13 +116,15 @@ def generate_CatGT_input_json(self):
116
116
/ f'{ session_str } _g{ gate_str } _imec{ probe_str } '
117
117
/ f'{ session_str } _g{ gate_str } _t{ trig_str } .imec{ probe_str } .ap.bin' )
118
118
continuous_file_symlink .parent .mkdir (parents = True , exist_ok = True )
119
- continuous_file_symlink .unlink (missing_ok = True )
119
+ if continuous_file_symlink .exists ():
120
+ continuous_file_symlink .unlink ()
120
121
continuous_file_symlink .symlink_to (continuous_file )
121
122
input_meta_fullpath_symlink = (input_meta_fullpath .parent / f'{ session_str } _g{ gate_str } '
122
123
/ f'{ session_str } _g{ gate_str } _imec{ probe_str } '
123
124
/ f'{ session_str } _g{ gate_str } _t{ trig_str } .imec{ probe_str } .ap.meta' )
124
125
input_meta_fullpath_symlink .parent .mkdir (parents = True , exist_ok = True )
125
- input_meta_fullpath_symlink .unlink (missing_ok = True )
126
+ if input_meta_fullpath_symlink .exists ():
127
+ input_meta_fullpath_symlink .unlink ()
126
128
input_meta_fullpath_symlink .symlink_to (input_meta_fullpath )
127
129
128
130
createInputJson (self ._catGT_input_json .as_posix (),
You can’t perform that action at this time.
0 commit comments