Skip to content
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

No longer setting CurrentUnits = PreferredUnits (issue 95) #307

Closed

Conversation

jeffbourdier
Copy link
Collaborator

This should fix #95. Note that examples with input units specified as "feet" were changed to "ft" for compatibility with Units.py.

@@ -4,7 +4,7 @@
Reservoir Model, 1
Reservoir Volume Option, 1
Reservoir Density, 2800
Reservoir Depth, 8500 feet, -- https://pangea.stanford.edu/ERE/db/GeoConf/papers/SGW/2024/Fercho.pdf
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a backwards-incompatible change - can we preserve feet as a valid unit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand the Units classes correctly, a given unit can have only one value (e.g., in LengthUnit, the value for FEET is "ft"). The only way I see to allow multiple values for a given unit would be to add a special case into LookupUnits, but this strikes me as a hack. Is there another (or a better) way?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actions are failing - looks like example output(s) need to be regenerated to include percent unit (which is a good thing) https://github.com/NREL/GEOPHIRES-X/actions/runs/11769618204/job/32780887255?pr=307#step:5:314

@jeffbourdier jeffbourdier deleted the fix-pump-efficiency-units branch November 19, 2024 02:47
@softwareengineerprogrammer
Copy link
Collaborator

Note: this was closed in favor of #310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix missing % unit for SUTRA pump efficiency
2 participants