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.