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

KeyError 'applied_additional_math' when using latest calliope #11

Open
jnnr opened this issue Oct 21, 2024 · 1 comment
Open

KeyError 'applied_additional_math' when using latest calliope #11

jnnr opened this issue Oct 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jnnr
Copy link

jnnr commented Oct 21, 2024

It seems like calligraph expects this attribute

("Applied additional math", results.attrs["applied_additional_math"]),
, but with the new math handling merged recently, this attribute was dropped (https://github.com/calliope-project/calliope/pull/639/files#diff-bee1adaa48125e41a8b1ac5edbc4b3a635b56fc53b28884838c12612bfe11d6a).

Simplest way to fix: Drop 'applied_additional_math' from the model summary. Maybe replace it with the new attribute model.applied_math?

@irm-codebase
Copy link

Unless I'm wrong, model.applied_math.data should have everything needed here.

@sjpfenninger sjpfenninger added the bug Something isn't working label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants