Skip to content

Commit

Permalink
Selection of new instrument works. this refs #86
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Aug 27, 2024
1 parent 75b563e commit caffcee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/hyperctui/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"],
Expand Down
1 change: 1 addition & 0 deletions src/hyperctui/setup_ob/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
3 changes: 2 additions & 1 deletion src/hyperctui/utilities/config_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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):
Expand Down

0 comments on commit caffcee

Please sign in to comment.