Skip to content

Commit

Permalink
review 2/2
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasjucker committed Mar 4, 2024
1 parent ac9bf75 commit 45e4530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
14 changes: 1 addition & 13 deletions model/common/tests/metric_tests/test_compute_wgtfac_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,12 @@
from icon4py.model.atmosphere.dycore.state_utils.utils import _allocate_indices
from icon4py.model.common.dimension import CellDim, KDim
from icon4py.model.common.metrics.stencils.compute_wgtfac_c import compute_wgtfac_c
from icon4py.model.common.test_utils.datatest_fixtures import ( # noqa: F401 # import fixtures from test_utils package
data_provider,
datapath,
download_ser_data,
experiment,
grid_savepoint,
icon_grid,
interpolation_savepoint,
metrics_savepoint,
processor_props,
ranked_data_path,
)
from icon4py.model.common.test_utils.helpers import dallclose, zero_field
from icon4py.model.common.type_alias import wpfloat


@pytest.mark.datatest
def test_compute_wgtfac_c(icon_grid, metrics_savepoint): # noqa: F811 # fixture
def test_compute_wgtfac_c(icon_grid, metrics_savepoint): # fixture
wgtfac_c = zero_field(icon_grid, CellDim, KDim, dtype=wpfloat, extend={KDim: 1})
wgtfac_c_ref = metrics_savepoint.wgtfac_c()
z_ifc = metrics_savepoint.z_ifc()
Expand Down
14 changes: 1 addition & 13 deletions model/common/tests/metric_tests/test_compute_wgtfacq_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,11 @@
import pytest

from icon4py.model.common.metrics.stencils.compute_wgtfacq_c import compute_wgtfacq_c
from icon4py.model.common.test_utils.datatest_fixtures import ( # noqa: F401 # import fixtures from test_utils package
data_provider,
datapath,
download_ser_data,
experiment,
grid_savepoint,
icon_grid,
interpolation_savepoint,
metrics_savepoint,
processor_props,
ranked_data_path,
)
from icon4py.model.common.test_utils.helpers import dallclose


@pytest.mark.datatest
def test_compute_wgtfacq_c(icon_grid, metrics_savepoint): # noqa: F811 # fixture
def test_compute_wgtfacq_c(icon_grid, metrics_savepoint): # fixture
wgtfacq_c_dsl = metrics_savepoint.wgtfacq_c_dsl()
z_ifc = metrics_savepoint.z_ifc()

Expand Down

0 comments on commit 45e4530

Please sign in to comment.