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):
116116 / f'{ session_str } _g{ gate_str } _imec{ probe_str } '
117117 / f'{ session_str } _g{ gate_str } _t{ trig_str } .imec{ probe_str } .ap.bin' )
118118 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 ()
120121 continuous_file_symlink .symlink_to (continuous_file )
121122 input_meta_fullpath_symlink = (input_meta_fullpath .parent / f'{ session_str } _g{ gate_str } '
122123 / f'{ session_str } _g{ gate_str } _imec{ probe_str } '
123124 / f'{ session_str } _g{ gate_str } _t{ trig_str } .imec{ probe_str } .ap.meta' )
124125 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 ()
126128 input_meta_fullpath_symlink .symlink_to (input_meta_fullpath )
127129
128130 createInputJson (self ._catGT_input_json .as_posix (),
You can’t perform that action at this time.
0 commit comments