-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue10 bidirectional #12
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsc-tbe Thanks for the addition! I have two open questions:
- Do we really need to introduce a new
node_type
with"supply_heating_cooling"
? I would consider the alternative of keeping those nodes withnode_type = "building"
. Or do we see a use case where we would have to differentiate between"building"
and"supply_heating_cooling"
in a network? - Would it be possible to add unit tests to make sure the new features work?
@marcusfuchs ok, I thought it would be nice to have the same keyword (supply) in the node_type of all nodes that supply heat or cold. If I change it as you suggested, there would be supply nodes with |
Hi @marcusfuchs, I added an unit test for the export and import methods. As you can see there are some problems with Travis CI. I just added one test function in test_uesgraph.py and an example district in example_uesgraph.py, nothing in test_visuals.py where the failure occures. I'm just comparing the imported example district with the original one. It would be nice if you could help, because I'm not so familiar with these unit tests. |
Added new node_type "supply_heating_cooling" in methods "to_json" and "from_json" to describe nodes/buildings serving as both heat and cooling suppliers.