flo-schu / pymob

Python model building platform
MIT License
0 stars 0 forks source link

Combining fixed parameters and free parameters is currently not very intuitive. #22

Open flo-schu opened 7 months ago

flo-schu commented 7 months ago

This should be made more clear in a released version

From the top of my head: Perhaps, model parameters can be a property, which gathers free and fixed parameters. free and fixed parameters are also properties that have associated setters, which calls update on the parameters.

This prevents any parameters to be deleted which are set during the initialization of the simulation (i.e. reading the config file) overriding initialized parameters in the user-define initialize method is then still a choice.

Using a setter is a good idea, because it allows the use of helpful error messages where the problem occurs