Skip to content

Commit

Permalink
Merge branch 'relcalpytest' of https://github.com/tjtg/improver into …
Browse files Browse the repository at this point in the history
…tjtg-relcalpytest
  • Loading branch information
Lucy Liu committed Feb 21, 2022
2 parents 46bce91 + 5756846 commit d8f53ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ def forecast_spot(forecast_grid):

@pytest.fixture
def truth_spot(truth_grid):
print(truth_grid)
print(truth_grid.data.shape)
truth_data_spot = truth_grid[0, ...].data.reshape((2, 9))
print(truth_data_spot.shape)
print(truth_data_spot)
truths_spot_list = CubeList()
for day in range(5, 7):
time_coords = construct_scalar_time_coords(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ def test_metadata_with_incomplete_inputs(forecast_grid, expected_attributes):
"""Test the metadata returned is complete and as expected when the
forecast cube does not contain all the required metadata to copy."""
forecast_1 = forecast_grid[0]
print(forecast_1)
result = Plugin._define_metadata(forecast_1)
assert isinstance(result, dict)
assert result == expected_attributes
Expand All @@ -263,7 +262,6 @@ def test_valid_inputs_spot(
):
"""Tests correct reliability cube generated from spot cube."""
forecast_spot_1 = forecast_spot[0]
print(forecast_spot_1)
forecast_slice = next(forecast_spot_1.slices_over("air_temperature"))
result = Plugin()._create_reliability_table_cube(
forecast_slice, forecast_slice.coord(var_name="threshold")
Expand Down

0 comments on commit d8f53ce

Please sign in to comment.