calliope-project / calliope

A multi-scale energy systems modelling framework

Home Page:https://www.callio.pe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the result as a html data

hoomannnnnn opened this issue · comments

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?

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')

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.

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).

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