-
Notifications
You must be signed in to change notification settings - Fork 14
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
Issue126 #174
Conversation
jkirsh2
commented
Apr 24, 2023
- added cumulative energy delta tracking to vehicles and stations
- include energy dispensed/expended in summary report
…de energy dispensed and expended in reports.
Signed-off-by: Nicholas Reinicke <[email protected]>
Signed-off-by: Nicholas Reinicke <[email protected]>
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.
looks great. so satisfying to see this now in the logs:
│ Total kWh Expended By Vehicles │ 676.09 kWh │
│ Total Gasoline Expended By Vehicles │ 70.24 Gal │
│ Total kWh Dispensed By Stations │ 872.03 kWh │
│ Total Gasoline Dispensed By Stations │ 7.0 Gal │
a few minor requests to wrap {}'s in Map(). thank you!
nrel/hive/model/station/station.py
Outdated
:param delta_energy: the energy dispensed for a charge event | ||
:return: the updated Station | ||
""" | ||
energy_dispensed = { |
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.
wrap with immutables.Map
nrel/hive/model/vehicle/vehicle.py
Outdated
:param delta_energy: | ||
:return: | ||
""" | ||
energy_expended = {k: self.energy_expended[k] + delta_energy[k] for k in self.energy.keys()} |
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.
wrap with immutables.Map
:param delta_energy: | ||
:return: | ||
""" | ||
energy_gained = {k: self.energy_gained[k] + delta_energy[k] for k in self.energy.keys()} |
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.
ditto
Wrapped dictionary Signed-off-by: Joshua Hoshiko <[email protected]>
Wrapped dictionary Signed-off-by: Joshua Hoshiko <[email protected]>
I wrapped the dictionaries since the two volunteers working on this had to leave, but we'll need to reformat |
i'll take a stab at fixing this, likely pushing up a new PR with the changes + formatting |
Closing as this was included in #179 |