Skip to content

Commit

Permalink
Fixed path on home computer. this refs #84
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Aug 16, 2024
1 parent 240add8 commit abcb187
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/hyperctui/hyperctui.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from hyperctui.session import DefaultValues

# warnings.filterwarnings('ignore')
DEBUG = False
DEBUG = True

if DEBUG:
HOME_FOLDER = "/Volumes/JeanHardDrive/" # mac at home
Expand Down Expand Up @@ -527,22 +527,27 @@ def inform_of_output_location(self):
"autoreduce",
"mcp",
])
output_location = os.path.join(HOME_FOLDER, output_location)

ob_output_location = os.sep.join([facility,
instrument,
ipts,
"shared",
"autoreduce",
"mcp",
])
ob_output_location = os.path.join(HOME_FOLDER, output_location)

final_ob_output_location = os.sep.join([facility,
instrument,
ipts,
"shared",
"autoreduce",
"mcp",
f"OBs_{title}" + os.path.sep])
final_ob_output_location = os.path.join(HOME_FOLDER, final_ob_output_location)

self.ui.projections_output_location_label.setText(os.path.abspath(output_location))
self.ui.projections_output_location_label.setText(output_location)
self.ui.obs_output_location_label.setText(os.path.abspath(ob_output_location))
self.ui.location_of_ob_created.setText(os.path.abspath(ob_output_location))
self.ui.final_location_of_ob_created.setText(os.path.abspath(final_ob_output_location))
Expand Down

0 comments on commit abcb187

Please sign in to comment.