Skip to content

GeometryManager: Search Config Path for Models By Default

Simon Spannagel requested to merge modelpath_config into master

It does not seem to be obvious that detector model definitions can be placed anywhere and their location has to be configured via

[Allpix]
model_paths = "/path/to/models"

This MR adds the location of the configuration file currently loaded to the list of default search paths for model files. This renders a configuration such as

[Allpix]
model_paths = "./"

unnecessary - unless there is a model with the same name as a default model which should be overwritten. The reason for this is that the config file path is added as last possibility to check, sort of a last resort.

For convenience of not rebasing things after a merge, this MR depends on !602 (merged) - please merge first!

Merge request reports