Skip to content

Commit

Permalink
fix for checking output path existing
Browse files Browse the repository at this point in the history
  • Loading branch information
amitabhverma committed Jan 12, 2025
1 parent d9a39c3 commit 4ef11a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recOrder/plugin/tab_recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ def _create_acq_contols2(
# These could be multiple based on user selection for each model
# Inherits from Input by default at creation time
name_without_ext = os.path.splitext(self.input_directory)[0]
save_path = os.path.join(Path(self.output_directory).parent.absolute(), (name_without_ext + ("_"+c_mode_short+"_"+num_str) + ".zarr"))
save_path = os.path.join(Path(self.output_directory).absolute(), (name_without_ext + ("_"+c_mode_short+"_"+num_str) + ".zarr"))
save_path_exists = True if Path(save_path).exists() else False
_output_data_loc = widgets.LineEdit(
value=Path(save_path).name, tooltip="" if not save_path_exists else (_validate_alert+" Output file exists")
Expand Down

0 comments on commit 4ef11a1

Please sign in to comment.