Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YamlModel.load_from_yaml loads model, leads to inconsistent YamlModel #61

Closed
jvanhoefer opened this issue Jan 18, 2021 · 1 comment
Closed
Assignees

Comments

@jvanhoefer
Copy link
Member

If you load a yaml model via YamlModel.load_from_yaml(...) entries for blocks, that are not present in the yaml, are not created in the model._yaml_model.

Problem: e.g. the yaml does not contain an observable, and later I want to modify the model via model.add_observable. Since the dict of model._yaml_model does not contain a observable entry, this throws an Error.

@jvanhoefer jvanhoefer self-assigned this Jan 18, 2021
@jvanhoefer
Copy link
Member Author

Should be closed with recent update to version 0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant