calliope-project / calligraph

Calligraph: A tool to interactively explore and visualise Calliope model results
Apache License 2.0
3 stars 0 forks source link

KeyError 'applied_additional_math' when using latest calliope #11

Open jnnr opened 6 hours ago

jnnr commented 6 hours ago

It seems like calligraph expects this attribute https://github.com/calliope-project/calligraph/blob/6593cf5b08c2d25ffe148ec51fecdd4a09dfa9ff/src/calligraph/core.py#L183, 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 commented 6 hours ago

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