-
Notifications
You must be signed in to change notification settings - Fork 10
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
Changes to reflect NDSL import format #13
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.
LGTM.
One note, for discussion
@@ -1,12 +1,11 @@ | |||
from gt4py.cartesian.gtscript import PARALLEL, computation, horizontal, interval, region |
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.
Out of scope of this PR, but some part of me is wondering if we could fold the gt4py.cartesian.gtscript
import in a ndsl.gtscript
. The main reason would be to keep a single point of entry for users and remove the confusion around the frameworks
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.
Agreed on having ndsl as the single point of entry for pyFV3 and pySHiELD.
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.
Logged in NOAA-GFDL/NDSL#29
You didn't push the update to |
Can you update the imports in examples/notebook/test_functionality.ipynb? |
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 for RC
. Release ndsl
in full and this can be moved on the released version and merged
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.
LGTM.
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.
Minor question about moving the geos_wrapper from pyfv3/wrappers/init to pyfv3/init, otherwise lgtm
pyFV3/__init__.py
Outdated
from .stencils import DryConvectiveAdjustment, DynamicalCore | ||
from .stencils.fv_dynamics import DynamicalCore | ||
from .stencils.fv_subgridz import DryConvectiveAdjustment | ||
from .wrappers.geos_wrapper import GeosDycoreWrapper |
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.
What's the logic behind this change?
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.
It was a, confused, attempt to prevent all of the stencils
module from being added to the cache, thus preventing any cyclical imports. It has been changed back now.
@@ -1,10 +0,0 @@ | |||
from .geos_wrapper import GeosDycoreWrapper, MemorySpace, StencilBackendCompilerOverride |
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 like geos_wrapper in here, personally, but it's not important until/unless we have other wrappers supported
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.
They have been brought back into that __init__
83a05ca
… wrapper module level
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
Modified import methods for inter and intra-package methods to reflect format adopted for NDSL
How Has This Been Tested?
Tested via lint and currently implemented translate tests
OS: RHEL 8.9 Ootpa
Built conda environment using workflow in github action configurations
Checklist: