You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calliope v0.7 keeps most of its attributes within model._model_data.attrs[] in the form of dictionaries.
However, model math and config are replicated in model.math and model.config. This introduces potential sync issues, necessitating some helper functions to keep these up-to-date. This is done via the _add_observed_dict() and _add_model_data_methods().
But this requires careful use of these functions in several parts of the code, and is a bit inefficient (we essentially duplicate the same model property).
Which operating systems have you used?
macOS
Windows
Linux
Version
v0.7
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
What happened?
Calliope v0.7 keeps most of its attributes within
model._model_data.attrs[]
in the form of dictionaries.However, model math and config are replicated in
model.math
andmodel.config
. This introduces potential sync issues, necessitating some helper functions to keep these up-to-date. This is done via the_add_observed_dict()
and_add_model_data_methods()
.But this requires careful use of these functions in several parts of the code, and is a bit inefficient (we essentially duplicate the same model property).
Which operating systems have you used?
Version
v0.7
Relevant log output
No response
The text was updated successfully, but these errors were encountered: