calliope-project / calliope

A multi-scale energy systems modelling framework
https://www.callio.pe
Apache License 2.0
276 stars 89 forks source link

debug functionality missing in Model.__init__ #607

Closed irm-codebase closed 1 week ago

irm-codebase commented 2 weeks ago

What happened?

Calliope's Model class initialization has a debug parameter with the following description:

            debug (bool, optional):
                If True, additional debug data will be included in the built model.
                Defaults to False.

At the moment, this parameter is completely unused by the code.

We check for model_data.attrs["_debug_data"] in other parts of the code, and for now it seems like this functionality won't work at all.

Which operating systems have you used?

Version

v0.7

Relevant log output

No response

brynpickering commented 2 weeks ago

Yeah, we need to purge that. Debug info is all available via the logger (and you can store that in a file following our tutorial: https://calliope.readthedocs.io/en/latest/examples/calliope_logging/)