-
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
make units an enum #120
make units an enum #120
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.
dig it, certainly helps a bit without adding any overhead. a typo fix request, and a request for a try/catch block lies in your future. 🐝
nrel/hive/model/vehicle/mechatronics/powertrain/tabular_powertrain.py
Outdated
Show resolved
Hide resolved
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.
good stuff, thanks nick!
@robfitzgerald - sorry! I pushed up a change right as you were approving the PR. Do you mind taking a super brief look at a2281be. |
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.
def valid_commit
Updates the units in hive a bit to support more ways to represent units as strings. Now, units are converted from a string into an Unit enum. This was done to support some internal work to integrate routee powertrain.