calliope-project / calliope

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

the result as a html data #473

Closed hoomannnnnn closed 9 months ago

hoomannnnnn commented 1 year ago

Problem description

Describe the problem or error here

If reporting an error when running Calliope on the command line, please re-run your command with the --debug option, e.g.:

calliope run my_model.yaml --debug

Then post the full output from the debug run.

If reporting an error when running Calliope interactively in a Python session, please include a full traceback.

Steps to reproduce the problem

Describe the steps needed to reproduce the problem here

Calliope version

What exact version of Calliope are you using?

hoomannnnnn commented 1 year ago

I have a problem with generating model.plot.summary in my code. The code runs correctly and completes without errors, but no HTML file is being generated. Its my run model: # Imports import calliope import warnings

ignore Future Warnings

warnings.simplefilter(action='ignore', category=FutureWarning) calliope.set_log_verbosity('INFO', include_solver_output=True) model = calliope.Model('model.yaml') model.run() model.plot.summary(to_file='test4333.html')

brynpickering commented 12 months ago

Which version of calliope are you using @hoomannnnnn ? calliope.__version__ in an interactive session should give it to you. Or calliope --version in the command line.

brynpickering commented 12 months ago

Tested with v0.6.10 and the national scale example model. It produces the expected HTML file. This is likely a problem with your model (maybe it doesn't solve to optimality), but could be due to using an older calliope version or something to do with where you expect to find your HTML file 'test4333.html' (it will be in the same directory as where you running your interactive session from).

brynpickering commented 9 months ago

Closing as I can't reproduce the issue. Feel free to reopen @hoomannnnnn if you are still facing this issue.