TNO Intern

Commit 386c4668 authored by Hen Brett's avatar Hen Brett 🐔
Browse files

Adding a test that prints out the minimum and maximum successful model runs

parent a2d37704
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4,12 +4,14 @@ import numpy as np
import xarray as xr

from pythermogis import calculate_doublet_performance
import pytest

test_files_path = Path(__file__).parent / "resources"

def print_min_max(variable: xr.DataArray):
    print(f"{variable.name}, {np.min(variable):.2f}, {np.max(variable):.2f}")

@pytest.mark.skip("Useful for understanding the range of possible input values, not for pipeline testing")
def test_define_calculation_limits():
    recalculate_results = False
    if recalculate_results: