some problem in the example "power-to-gas-boiler-chp.ipynb"

45 views
Skip to first unread message

Fei ZHAO

unread,
Mar 22, 2022, 10:17:40 AM3/22/22
to pypsa

Hi,

In the example "Power to Gas with Heat Coupling", there are some bugs in [7] cell of the jupyter notebook "power-to-gas-boiler-chp.ipynb". The part of error message are as follows. They can also find in https://pypsa.readthedocs.io/en/latest/examples/power-to-gas-boiler-chp.html. I don't modify any code, and it shows these error message after running the example model.

How can I fix it?
Thank you very much!

Input In [7], in <cell line: 1>()
----> 1 network.lopf(network.snapshots, extra_functionality=extra_functionality)
2 network.objective

File ~/checkouts/readthedocs.org/user_builds/pypsa/conda/latest/lib/python3.10/site-packages/pypsa/components.py:658, in Network.lopf(self, snapshots, pyomo, solver_name, solver_options, solver_logfile, formulation, keep_files, extra_functionality, multi_investment_periods, **kwargs)
653 logger.warning("You have defined one or more shunt impedances. "
654 "Shunt impedances are ignored by the linear optimal "
655 "power flow (LOPF).")
657 if pyomo:
--> 658 return network_lopf(self, **args)
659 else:
660 return network_lopf_lowmem(self, **args)
... ...
raise RuntimeError("Fatal error: cannot find the component data in "
RuntimeError: Fatal error: cannot find the component data in the owning component's _data dictionary.

Priyesh Gosai

unread,
Mar 27, 2023, 3:50:04 PM3/27/23
to pypsa
Hi All 

I don't see any response on this. I am getting the same error with my model. 

Has this issue been resolved by others ? 

Kind regards 

Priyesh

Reply all
Reply to author
Forward
0 new messages