We have ct_slopes.json but soon also a file for radionuclide info. At some point, we might like to have default settings for reconstruction algorithms etc. The question is then how to let STIR to find this.
Suggestion:
create a function find_STIR_config_file(filename) that
check the value of an environment variable STIR_CONFIG_DIR. If it exists, checks if the file exists and use that.
copyct_slopes.json to this config directory as opposed to stir/share
set appropriate default for the filename in HUToMuImageProcessor
It makes sense to rename the CMake variable from STIR_DATA_DIR to STIR_SHARE_DIR
A problem with this strategy is that the build version of STIR would go and look in the install directory for this file. It can therefore pick up an old file. Not sure how to prevent this.
We have
ct_slopes.json
but soon also a file for radionuclide info. At some point, we might like to have default settings for reconstruction algorithms etc. The question is then how to let STIR to find this.Suggestion:
find_STIR_config_file(filename)
thatSTIR_CONFIG_DIR
. If it exists, checks if the file exists and use that.CMAKE_INSTALL_PREFIX/share/stir/config
, i.e. via https://github.com/UCL/STIR/blob/96b200d98162158457803b563030dd396a129f55/CMakeLists.txt#L83ct_slopes.json
to thisconfig
directory as opposed tostir/share
HUToMuImageProcessor
It makes sense to rename the CMake variable from
STIR_DATA_DIR
toSTIR_SHARE_DIR
A problem with this strategy is that the build version of STIR would go and look in the
install
directory for this file. It can therefore pick up an old file. Not sure how to prevent this.