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

Missing component in COMP_TARGET_CLASSES #508

Closed sertomas closed 2 months ago

sertomas commented 2 months ago

When I save and read a network with a DiabaticCombustionChamber I get this error while reading the file: KeyError: 'DiabaticCombustionChamber'. I think this component is missing in network_reader.py/COMP_TARGET_CLASSES. Or is there a reason for that?

fwitte commented 2 months ago

Hi @sertomas,

you are correct with that, I'll fix it and make a release asap.

Best

fwitte commented 2 months ago

@sertomas, could you quickly test, if the changes on branch fix/#508-missing-imports-in-network-load make your use case work? Thanks!

sertomas commented 2 months ago

Hi @fwitte it works now! :)

fwitte commented 2 months ago

@sertomas: I released a new version, which includes the fix. Also, it is now possible to register your own components to the load_network method. See the what's new section on the docs. Thanks for reporting the issue!