-
Notifications
You must be signed in to change notification settings - Fork 8
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
Quantity factory to use dsl Float type as default #44
Conversation
32dc434
to
b87f813
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.
Small change, then good to go
ndsl/quantity.py
Outdated
@@ -298,7 +300,7 @@ def __init__( | |||
""" | |||
# ToDo: [Florian 01/23] Kill the abomination. | |||
# See https://github.com/NOAA-GFDL/pace/issues/3 | |||
from ndsl.dsl.typing import Float | |||
# from ndsl.dsl.typing import Float |
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.
I'd rather delete this instead of commenting it out
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.
Double check that all build are fine with removing the workaround and then, indeed, remove all comments.
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.
I have tested these changes in the following ways:
- Test branch in pyFV3 (develop)
- python=3.8
- translate numpy passes
- translate dace:cpu passes
- python=3.11
- translate numpy passes
- translate dace:cpu passes
- python=3.8
- Test branch in pySHiELD (develop)
- python=3.8
- translate numpy passes
- translate dace:cpu passes
- python=3.11
- translate numpy passes
- translate dace:cpu passes
- python=3.8
- Test branch in pace (develop)
- python=3.8
- tests/main passed
- python=3.11
- tests/main passed
- python=3.8
ndsl/quantity.py
Outdated
@@ -298,7 +300,7 @@ def __init__( | |||
""" | |||
# ToDo: [Florian 01/23] Kill the abomination. | |||
# See https://github.com/NOAA-GFDL/pace/issues/3 | |||
from ndsl.dsl.typing import Float | |||
# from ndsl.dsl.typing import Float |
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.
Double check that all build are fine with removing the workaround and then, indeed, remove all comments.
ndsl/quantity.py
Outdated
@@ -298,7 +300,6 @@ def __init__( | |||
""" | |||
# ToDo: [Florian 01/23] Kill the abomination. | |||
# See https://github.com/NOAA-GFDL/pace/issues/3 |
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.
Remove this before merging
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.
Clean up the outdated comment and it's good for me!
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.
👍
Description
Changes to
QuantityFactory
methods that previosuly defaulted tonumpy.float64
type to useFloat
dsl type to enable specification of 32-bit or 64-bit precision.How Has This Been Tested?
Tested using currently implemented unit tests
Use in builds of
pyFV3
,pySHiELD
, andpace
Checklist: