From abcb18751d16de63f5803a2340e7aae1ba312aef Mon Sep 17 00:00:00 2001 From: JeanBilheux Date: Fri, 16 Aug 2024 08:43:13 -0400 Subject: [PATCH] Fixed path on home computer. this refs #84 --- src/hyperctui/hyperctui.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/hyperctui/hyperctui.py b/src/hyperctui/hyperctui.py index 114ef62..bdbe55b 100644 --- a/src/hyperctui/hyperctui.py +++ b/src/hyperctui/hyperctui.py @@ -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 @@ -527,6 +527,8 @@ 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, @@ -534,6 +536,8 @@ def inform_of_output_location(self): "autoreduce", "mcp", ]) + ob_output_location = os.path.join(HOME_FOLDER, output_location) + final_ob_output_location = os.sep.join([facility, instrument, ipts, @@ -541,8 +545,9 @@ def inform_of_output_location(self): "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))