-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implement graph structure #254
Conversation
/run-benchmark |
|
9b118a8
to
3352749
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #254 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 7 +2
Lines 236 201 -35
=========================================
- Hits 236 201 -35 ☔ View full report in Codecov by Sentry. |
3352749
to
3161bcd
Compare
/run-benchmark |
|
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.
One general question is if you are going to include changes for the representatives in this PR or if you are going to create a new one. Maybe we don't need changes in the rp i/o for the moment. I just wanted to ask since you mentioned it yesterday during the meeting.
src/io.jl
Outdated
@@ -53,111 +79,33 @@ function create_parameters_and_sets_from_file(input_folder::AbstractString) | |||
|
|||
# Parameter for profile of assets | |||
assets_profile = Dict( | |||
(assets[row.id], row.rep_period_id, row.time_step) => row.value for | |||
(asset_data[row.id][1], row.rep_period_id, row.time_step) => row.value for |
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.
Is it possible to write explicitly that we are accessing the asset's name?
I mean, instead of asset_data[row.id][1]
something like asset_data[row.id][name]
That will help with the readability of the code.
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.
Yes, this is easy but I missed it. Using label_for(graph, row.id)
will work.
3161bcd
to
3c716ab
Compare
3c716ab
to
1e3e405
Compare
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.
Thanks for the changes. LFTM
Pull request details
Describe the changes made in this pull request
Creates structures for assets and flows in the graph.
Creates a MetaGraph using those structures.
Stores the basic data from assets and flows in this graph.
The margin was changed from the default (92) to 100 to allow the ternary operators (
x ? y : z
). Otherwise the formatter will split into an if-else and make the coverage decrease.List of related issues or pull requests
Closes #106, closes #105, closes #118
Collaboration confirmation
As a contributor I confirm