Skip to content

Commit 63f8e88

Browse files
authored
Merge pull request #60 from fmalatino/packaging
Packaging: Use of `pyproject.toml` and move to PEP 8 naming convention for modernization
2 parents 68912d1 + 6aa9c9f commit 63f8e88

File tree

106 files changed

+283
-285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+283
-285
lines changed

.github/workflows/pace_tests.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: "pace main tests"
2-
on:
3-
pull_request:
1+
# TODO: Re-activate after PR 60
2+
# name: "pace main tests"
3+
# on:
4+
# pull_request:
45

5-
jobs:
6-
pace_main_tests:
7-
uses: NOAA-GFDL/pace/.github/workflows/main_unit_tests.yaml@develop
8-
with:
9-
component_trigger: true
10-
component_name: pyFV3
6+
# jobs:
7+
# pace_main_tests:
8+
# uses: NOAA-GFDL/pace/.github/workflows/main_unit_tests.yaml@develop
9+
# with:
10+
# component_trigger: true
11+
# component_name: pyFV3
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: "pySHiELD translate tests"
2-
on:
3-
pull_request:
1+
# TODO: Reactivate after PR 60
2+
# name: "pySHiELD translate tests"
3+
# on:
4+
# pull_request:
45

5-
jobs:
6-
pyshield_translate_tests:
7-
uses: NOAA-GFDL/PySHiELD/.github/workflows/translate.yaml@develop
8-
with:
9-
component_trigger: true
10-
component_name: pyFV3
6+
# jobs:
7+
# pyshield_translate_tests:
8+
# uses: NOAA-GFDL/PySHiELD/.github/workflows/translate.yaml@develop
9+
# with:
10+
# component_trigger: true
11+
# component_name: pyFV3

.github/workflows/scripts/convert_xppm_yppm.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
set -e
1111

1212
# Copy XPPM codes into YPPM files
13-
cp pyFV3/stencils/xppm.py pyFV3/stencils/yppm.py
14-
cp pyFV3/stencils/xtp_u.py pyFV3/stencils/ytp_v.py
13+
cp pyfv3/stencils/xppm.py pyfv3/stencils/yppm.py
14+
cp pyfv3/stencils/xtp_u.py pyfv3/stencils/ytp_v.py
1515

1616
# Fixup YPPM code
17-
for fname in pyFV3/stencils/yppm.py pyFV3/stencils/ytp_v.py
17+
for fname in pyfv3/stencils/yppm.py pyfv3/stencils/ytp_v.py
1818
do
1919
sed -i 's/ub/vb/g' $fname
2020
sed -i 's/dx/dy/g' $fname
@@ -47,18 +47,18 @@ do
4747
sed -i 's/\[j_end + 2, :/\[:, j_end + 2/g' $fname
4848
done
4949

50-
sed -i 's/i_start/j_start/g' pyFV3/stencils/yppm.py
51-
sed -i 's/i_end/j_end/g' pyFV3/stencils/yppm.py
52-
sed -i 's/XPiecewise/YPiecewise/g' pyFV3/stencils/yppm.py
53-
sed -i 's/X Piecewise/Y Piecewise/g' pyFV3/stencils/yppm.py
54-
sed -i 's/xppm/yppm/g' pyFV3/stencils/yppm.py
55-
sed -i 's/u\*/v\*/g' pyFV3/stencils/yppm.py
50+
sed -i 's/i_start/j_start/g' pyfv3/stencils/yppm.py
51+
sed -i 's/i_end/j_end/g' pyfv3/stencils/yppm.py
52+
sed -i 's/XPiecewise/YPiecewise/g' pyfv3/stencils/yppm.py
53+
sed -i 's/X Piecewise/Y Piecewise/g' pyfv3/stencils/yppm.py
54+
sed -i 's/xppm/yppm/g' pyfv3/stencils/yppm.py
55+
sed -i 's/u\*/v\*/g' pyfv3/stencils/yppm.py
5656

57-
sed -i 's/j_start - 1 : j_start + 1, j_start/i_start, j_start - 1 : j_start + 1/g' pyFV3/stencils/ytp_v.py
58-
sed -i 's/j_start - 1 : j_start + 1, j_end + 1/i_end + 1, j_start - 1 : j_start + 1/g' pyFV3/stencils/ytp_v.py
59-
sed -i 's/j_end : j_end + 2, j_start/i_start, j_end : j_end + 2/g' pyFV3/stencils/ytp_v.py
60-
sed -i 's/j_end : j_end + 2, j_end + 1/i_end + 1, j_end : j_end + 2/g' pyFV3/stencils/ytp_v.py
61-
sed -i 's/j_end, j_start, jord, j_end, j_start/i_end, i_start, j_end, j_start, jord/g' pyFV3/stencils/ytp_v.py
62-
sed -i 's/xppm/yppm/g' pyFV3/stencils/ytp_v.py
57+
sed -i 's/j_start - 1 : j_start + 1, j_start/i_start, j_start - 1 : j_start + 1/g' pyfv3/stencils/ytp_v.py
58+
sed -i 's/j_start - 1 : j_start + 1, j_end + 1/i_end + 1, j_start - 1 : j_start + 1/g' pyfv3/stencils/ytp_v.py
59+
sed -i 's/j_end : j_end + 2, j_start/i_start, j_end : j_end + 2/g' pyfv3/stencils/ytp_v.py
60+
sed -i 's/j_end : j_end + 2, j_end + 1/i_end + 1, j_end : j_end + 2/g' pyfv3/stencils/ytp_v.py
61+
sed -i 's/j_end, j_start, jord, j_end, j_start/i_end, i_start, j_end, j_start, jord/g' pyfv3/stencils/ytp_v.py
62+
sed -i 's/xppm/yppm/g' pyfv3/stencils/ytp_v.py
6363

64-
sed -i 's/region\[j_start - 1 : j_start + 2, :\], region\[j_end - 1 : j_end + 2, :\]/region\[:, j_start - 1 : j_start + 2\], region\[:, j_end - 1 : j_end + 2\]/g' pyFV3/stencils/yppm.py
64+
sed -i 's/region\[j_start - 1 : j_start + 2, :\], region\[j_end - 1 : j_end + 2, :\]/region\[:, j_start - 1 : j_start + 2\], region\[:, j_end - 1 : j_end + 2\]/g' pyfv3/stencils/yppm.py

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ RUN which python
2929
RUN pip --version
3030
RUN which pip
3131

32-
COPY ./ /pyFV3/
32+
COPY . /pyfv3
3333

3434
# Install pyFV3 and the full dependencies
35-
RUN pip install -e pyFV3[develop]
35+
RUN cd /pyfv3 && pip install -e .[develop]
3636

3737
RUN pip install \
3838
matplotlib \

examples/standalone/runfile/acoustics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
)
2222
from ndsl.performance import Timer
2323
from ndsl.stencils.testing import Grid
24-
from pyFV3 import DynamicalCoreConfig
25-
from pyFV3.stencils import AcousticDynamics
26-
from pyFV3.testing import TranslateDynCore
24+
from pyfv3 import DynamicalCoreConfig
25+
from pyfv3.stencils import AcousticDynamics
26+
from pyfv3.testing import TranslateDynCore
2727

2828

2929
try:

examples/standalone/runfile/compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import gt4py.cartesian.config
1010

1111
from ndsl import NullComm
12-
from pyFV3 import DynamicalCoreConfig
12+
from pyfv3 import DynamicalCoreConfig
1313

1414

1515
try:

examples/standalone/runfile/dynamics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
from ndsl.grid import DampingCoefficients, GridData, MetricTerms
3131
from ndsl.performance import Timer
3232
from ndsl.stencils.testing import Grid, dataset_to_dict
33-
from pyFV3 import DycoreState, DynamicalCore, DynamicalCoreConfig
34-
from pyFV3.initialization.test_cases import init_baroclinic_state
35-
from pyFV3.testing import TranslateFVDynamics
33+
from pyfv3 import DycoreState, DynamicalCore, DynamicalCoreConfig
34+
from pyfv3.initialization.test_cases import init_baroclinic_state
35+
from pyfv3.testing import TranslateFVDynamics
3636

3737

3838
def parse_args() -> Namespace:
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)