TNO Intern

Commit 2a742b3a authored by Hen Brett's avatar Hen Brett 🐔
Browse files

Adding an example to the test_doc_examples

parent 8271be39
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ def validate_input(reservoir_properties: xr.Dataset):
    # check all necessary variables are present
    missing_variables = []
    for variable in ["thickness", "porosity", "ntg", "depth"]:
        if variable not in reservoir_properties:
        if variable not in reservoir_properties and variable not in reservoir_properties.dims:
            missing_variables.append(variable)

    if len(missing_variables) > 0:
+3 −0
Original line number Diff line number Diff line
@@ -122,6 +122,9 @@ def calculate_performance_of_single_location(mask: float, depth: float, thicknes
    results = doublet.calculateDoubletPerformance(input)

    # If calculation was not successful, return mask value
    if results is None:
        return (np.nan,) * 14

    if results.utc() == -9999.0:
        return (mask_value,) * 14

+333 −112

File changed.

Preview size limit exceeded, changes collapsed.