Add caldb_root as parameter for CalibrationData
Description
At present, the CalibrationData API can't be used with test CalCat - you can point it to the right server, but the root directory it uses for constants is hardcoded. This MR allows passing in the root directory, e.g. /gpfs/exfel/d/cal_tst/caldb_store
.
If no path is given, it uses the existing logic to find the default directory for the production calcat.
How Has This Been Tested?
TBD - it's a simple change, so I wanted to check if this is the design we want before getting into testing.
Types of changes
- New feature (non-breaking change which adds functionality)
Checklist:
- My code follows the code style of this project.
Reviewers
Merge request reports
Activity
- Resolved by Karim Ahmed
added 1 commit
- 4a913984 - No need for a sentinel for 'not available' here
LGTM. Thank you, @kluyvert
Edited by Karim AhmedYes, checking for the existence of either location may be more reliable. Unlikely someone creates an identical path just for fun on a different system. Not finding either may also point to a missing GPFS mount though, so any exception message should include that possibility.
Edited by Philipp Schmidt
added 1 commit
- e78f6e1d - Find default caldb_root once, based on whether directories exist
mentioned in commit fbf2ca49