oemof / tespy

Thermal Engineering Systems in Python (TESPy). This package provides a powerful simulation toolkit for thermodynamic modeling of thermal engineering plants such as power plants, heat pumps or refrigeration machines.
https://tespy.readthedocs.io
MIT License
281 stars 86 forks source link

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

Closed fwitte closed 1 month ago

fwitte commented 5 months 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!