-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Description, motivation and use case
Right now, the ConfigModel is kept in the same file as the actual class with implementation. This is nice to keep everything in the same place. However, when writing the script without a config file, there is a small issue when ConfigModels are imported. One needs to do
from something.something.bpm import ConfigModel as BPMConfigModel
from something.something.quadrupole import Config Model as QuadrupoleConfigModel
Is it required for the Factory to have for everyclass a ConfigModel and not a SomethingConfigModel? I imagine it is easier with ConfigModel for everything in the same file. But it should be possible to modify it.
Proposed solution
Either we need to rename All ConfigModels or put the configuration in a separate place
Example
Something like below should be possible
from something.something import BPMConfigModel, QuadrupoleConfigModel
This technically only reduces the lines of code by one. But I find it to be much better personally.
Additional context
@TeresiaOlsson was mentioning this same issue some time ago.
Checklist
- I've assigned this issue to a project
- I've @-mentioned relevant people
- I've checked, there are no duplicate issues