NOAA-GFDL / NDSL

NOAA NASA Domain Specific Language middleware layer
6 stars 8 forks source link

Refactor `gtscript` import under a central `ndsl.gtscript` #29

Open FlorianDeconinck opened 7 months ago

FlorianDeconinck commented 7 months ago

As shown in https://github.com/NOAA-GFDL/PyFV3/pull/13 the current gtscript import are still pointing to the original gt4py package. This isn't an issue per se, but could induce further confusion for users.

We propose to wrap the common imports into a stub on ndsl e.g.:

from gt4py.cartesian.gtscript import PARALLEL, computation, horizontal, interval, region

would become

from ndsl.gtscript import PARALLEL, computation, horizontal, interval, region

We would not recommend moving them into ndsl so that the delimitation to gt4py is kept for clarity.