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
272 stars 85 forks source link

Fix bug: Broken connection and component access via label #247

Closed fwitte closed 3 years ago

fwitte commented 3 years ago

When using TESPy with e.g. PyGMO copies of the model are created. Accessing the components and connections via label was broken in some cases as the accessed instance was not pointing to the correct location. This PR removes the double structure that was implemented for the easy access and introduces a fixed access variant. Changes necessary are listed in What's New.

pep8speaks commented 3 years ago

Hello @fwitte! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2021-02-11 11:50:06 UTC