TNO Intern

Commit 0936ea42 authored by Hen Brett's avatar Hen Brett 🐔
Browse files

Removing the currently not implemented HP test

parent a6f27e11
Loading
Loading
Loading
Loading
+20 −13
Original line number Diff line number Diff line
@@ -69,8 +69,9 @@ def calculate_performance_across_dimensions(input_data: xr.Dataset,
    """
    if p_values is None:
        p_values = [50.0]
    if input_params is None:    # If input parameters is none; then setup the BaseCase parameters
        input_params = {"hp_minimum_injection_temperature": 15,

    # Input parameters
    input_params_basecase = {"hp_minimum_injection_temperature": 15,
                    "return_temperature": 30,
                    "surface_temperature": 10,
                    "degrees_per_km": 31,
@@ -81,6 +82,12 @@ def calculate_performance_across_dimensions(input_data: xr.Dataset,
                    "utc_cutoff_shallow": 5.1,
                    "utc_cutoff_deep": 6.5,
                    "utc_cutoff_depth": 4000.0}

    if input_params is None:    # If no input_params provided, use the basecase
        input_params = input_params_basecase
    else:
        input_params = {key: input_params.get(key, input_params_basecase[key]) for key in input_params_basecase}

    if "temperature" not in input_data:
        input_data["temperature"] = calculate_temperature_from_gradient(input_data.depth, input_data.thickness_mean, input_params["degrees_per_km"], input_params["surface_temperature"])

@@ -96,7 +103,7 @@ def calculate_performance_across_dimensions(input_data: xr.Dataset,

    # Instantiate the UTC properties class
    propsBuilder = UTCPropertiesBuilder()
    utc_properties = propsBuilder.build()
    utc_properties = propsBuilder.setUseHeatPump(input_params["use_heat_pump"]).setUseStimulation(input_params["use_stimulation"]).build()

    # Instantiate random number generator:
    if rng_seed is None:
+2.31 KiB

File added.

No diff preview for this file type.

+2.31 KiB

File added.

No diff preview for this file type.

+2.31 KiB

File added.

No diff preview for this file type.

Loading