oemof / tespy

Thermal Engineering Systems in Python (TESPy). This package provides a powerful simulation toolkit for thermal engineering plants such as power plants, district heating systems or heat pumps.
https://tespy.readthedocs.io
MIT License
256 stars 80 forks source link

Make "_network._reset_topology_reduction_specifications()" a public method #520

Open fwitte opened 3 weeks ago

fwitte commented 3 weeks ago

Discussed in https://github.com/oemof/tespy/discussions/517

Originally posted by **guidoffrate** May 28, 2024 Hi, I am following this example [How to Generate Stable Starting Values](https://tespy.readthedocs.io/en/main/tutorials/starting_values.html) to generate stable starting points and make the heat pump calculation converge. I was successful, so perfect! However, I was wondering why, after a failed calculation, we have to run the method `nw._reset_topology_reduction_specifications()` (where `nw` is the network from the example). Secondly, is there another way to perform this reset since the method above is not intended to be used outside the object (it is protected)? Thank you!