Handle missing IPTS numbers in configs more gracefully
Summary of Changes
I've made two changes:
- If the IPTS number isn't explicitly declared, I try to load the IPTS number from the data directory field of the config file.
- If it can't be loaded from either field, then I show a special error message informing the user to switch to the reduction input tab.
I've tested with the following files:
- topaz.missing_ipts.config - This should still load the IPTS number even though that field is missing.
- topaz.missing_ipts_and_datadir.config - This should show the new error message since both the IPTS number and data directory fields are missing.
Checklist
-
The MR has a clear and concise title -
Code is self-documented and follows style guidelines. -
Automated tests are written and pass successfully. -
Regression tests (e.g. manually triggered system tests, manual GUI/tool tests, ...) are performed to make sure the MR does not break anything (when applicable) -
Readme file is present and up-to-date.
Documentation Updates
Additional Notes
Closes #38 (closed)