From caffcee7e162cbcd8ee2835c42ab5e819207013a Mon Sep 17 00:00:00 2001 From: JeanBilheux Date: Tue, 27 Aug 2024 13:45:18 -0400 Subject: [PATCH] Selection of new instrument works. this refs #86 --- src/hyperctui/config.json | 1 + src/hyperctui/setup_ob/get.py | 1 + src/hyperctui/utilities/config_handler.py | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hyperctui/config.json b/src/hyperctui/config.json index e926514..334b7ec 100644 --- a/src/hyperctui/config.json +++ b/src/hyperctui/config.json @@ -2,6 +2,7 @@ "config version": "0.0.1", "log_file_name": ".hyperctui.log", "homepath": ["/Volumes/Buffalo/IPTS/IPTS-25967/raw", + "/Volumes/JeanHardDrive", "/Volumes/G-DRIVE/", "/Users/j35", "/Volumes/Samsung_T5/IPTS/IPTS-25967-pyMBIR_UI/raw/"], diff --git a/src/hyperctui/setup_ob/get.py b/src/hyperctui/setup_ob/get.py index 9e20c67..38dd3bd 100644 --- a/src/hyperctui/setup_ob/get.py +++ b/src/hyperctui/setup_ob/get.py @@ -16,6 +16,7 @@ def list_of_ipts(self, instrument, facility): logging.info(f"list of IPTS:") home_folder = self.parent.homepath logging.info(f"-> home_folder: {home_folder}") + logging.info(f"-> looking ipts in {os.path.join(home_folder + '/' + facility, instrument + '/IPTS-*') =}") full_path_list_ipts = glob.glob(os.path.join(home_folder + '/' + facility, instrument + '/IPTS-*')) logging.info(f"-> full_path_list_ipts: {full_path_list_ipts}") diff --git a/src/hyperctui/utilities/config_handler.py b/src/hyperctui/utilities/config_handler.py index cb19092..ceb7387 100644 --- a/src/hyperctui/utilities/config_handler.py +++ b/src/hyperctui/utilities/config_handler.py @@ -20,6 +20,7 @@ def load(self): for _homepath in config['homepath']: if os.path.exists(_homepath): self.parent.homepath = _homepath + break o_get = Get(parent=self.parent) log_file_name = o_get.get_log_file_name() @@ -28,7 +29,7 @@ def load(self): format='[%(levelname)s] - %(asctime)s - %(message)s', level=logging.INFO) logging.info("*** Starting a new session ***") - logging.info(f" Version: {versioneer.get_version()}") + # logging.info(f" Version: {versioneer.get_version()}") def load_reconstruction_config(self, file_name=None): if not os.path.exists(file_name):