Loading src/pythermogis/doublet_simulation/deterministic_doublet.py +1 −1 Original line number Diff line number Diff line Loading @@ -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: Loading src/pythermogis/thermogis_classes/doublet.py +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading tests/test_doc_examples.py +333 −112 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
src/pythermogis/doublet_simulation/deterministic_doublet.py +1 −1 Original line number Diff line number Diff line Loading @@ -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: Loading
src/pythermogis/thermogis_classes/doublet.py +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
tests/test_doc_examples.py +333 −112 File changed.Preview size limit exceeded, changes collapsed. Show changes