TNO Intern

Commit a2d37704 authored by Hen Brett's avatar Hen Brett 🐔
Browse files

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

parent a86b4771
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ def print_min_max(variable: xr.DataArray):
    print(f"{variable.name}, {np.min(variable):.2f}, {np.max(variable):.2f}")

def test_define_calculation_limits():
    recalculate_results = True
    recalculate_results = False
    if recalculate_results:
        # generate simulation samples across desired reservoir properties
        Nsamples = 1000
@@ -44,5 +44,5 @@ def test_define_calculation_limits():
    results = results.dropna(dim="sample", subset=["power"])

    # print the min and max values of all the inputs
    for var in results:
    for var in ["thickness", "porosity", "ntg", "depth", "permeability", "temperature"]:
        print_min_max(results[var])
 No newline at end of file