From b7420731111acc021ce75c195c005c65f354ac3a Mon Sep 17 00:00:00 2001 From: softwareengineerprogrammer <4056124+softwareengineerprogrammer@users.noreply.github.com> Date: Fri, 22 Nov 2024 10:23:17 -0800 Subject: [PATCH] Remove redundant default value definitions from HIP-RA-X tooltip text --- .../hip-ra-x-request.json | 20 +++++++++---------- src/hip_ra_x/hip_ra_x.py | 20 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/geophires_x_schema_generator/hip-ra-x-request.json b/src/geophires_x_schema_generator/hip-ra-x-request.json index 5840892e..8420f0be 100644 --- a/src/geophires_x_schema_generator/hip-ra-x-request.json +++ b/src/geophires_x_schema_generator/hip-ra-x-request.json @@ -17,7 +17,7 @@ ], "properties": { "Reservoir Temperature": { - "description": "Reservoir Temperature [150 degC]", + "description": "Reservoir Temperature", "type": "number", "units": "degC", "category": null, @@ -26,7 +26,7 @@ "maximum": 1000 }, "Rejection Temperature": { - "description": "Rejection Temperature [25 degC]", + "description": "Rejection Temperature", "type": "number", "units": "degC", "category": null, @@ -35,7 +35,7 @@ "maximum": 200 }, "Reservoir Porosity": { - "description": "Reservoir Porosity [18%]", + "description": "Reservoir Porosity", "type": "number", "units": "%", "category": null, @@ -44,7 +44,7 @@ "maximum": 100.0 }, "Reservoir Area": { - "description": "Reservoir Area [81 km2]", + "description": "Reservoir Area", "type": "number", "units": "km**2", "category": null, @@ -53,7 +53,7 @@ "maximum": 10000.0 }, "Reservoir Thickness": { - "description": "Reservoir Thickness [0.286 km]", + "description": "Reservoir Thickness", "type": "number", "units": "kilometer", "category": null, @@ -62,7 +62,7 @@ "maximum": 10000.0 }, "Reservoir Life Cycle": { - "description": "Reservoir Life Cycle [30 years]", + "description": "Reservoir Life Cycle", "type": "integer", "units": "yr", "category": null, @@ -71,7 +71,7 @@ "maximum": 100 }, "Rock Heat Capacity": { - "description": "Rock Heat Capacity [2.84E+12 kJ/km3C]", + "description": "Rock Heat Capacity", "type": "number", "units": "kJ/km**3C", "category": null, @@ -80,7 +80,7 @@ "maximum": 100000000000000.0 }, "Fluid Specific Heat Capacity": { - "description": "Specific Heat Capacity Of Water [4.18 kJ/kgC]", + "description": "Specific Heat Capacity Of Water", "type": "number", "units": "kJ/kgC", "category": null, @@ -89,7 +89,7 @@ "maximum": 10.0 }, "Density Of Reservoir Fluid": { - "description": "Density Of Water [1.0E+12 kg/km3]", + "description": "Density Of Water", "type": "number", "units": "kg/km**3", "category": null, @@ -98,7 +98,7 @@ "maximum": 10000000000000.0 }, "Density Of Reservoir Rock": { - "description": "Density Of Rock [2.55E+12 kg/km3]", + "description": "Density Of Rock", "type": "number", "units": "kg/km**3", "category": null, diff --git a/src/hip_ra_x/hip_ra_x.py b/src/hip_ra_x/hip_ra_x.py index e7d2f623..ff587220 100644 --- a/src/hip_ra_x/hip_ra_x.py +++ b/src/hip_ra_x/hip_ra_x.py @@ -120,7 +120,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: CurrentUnits=TemperatureUnit.CELSIUS, Required=True, ErrMessage='assume default reservoir temperature (150 degC)', - ToolTipText='Reservoir Temperature [150 degC]', + ToolTipText='Reservoir Temperature', ) ) self.rejection_temperature: Parameter = parameter_dict_entry( @@ -134,7 +134,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: CurrentUnits=TemperatureUnit.CELSIUS, Required=True, ErrMessage='assume default rejection temperature (25 degC)', - ToolTipText='Rejection Temperature [25 degC]', + ToolTipText='Rejection Temperature', ) ) self.reservoir_porosity: Parameter = parameter_dict_entry( @@ -148,7 +148,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: CurrentUnits=PercentUnit.PERCENT, Required=True, ErrMessage='assume default reservoir porosity (18%)', - ToolTipText='Reservoir Porosity [18%]', + ToolTipText='Reservoir Porosity', ) ) self.reservoir_area: Parameter = parameter_dict_entry( @@ -162,7 +162,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: CurrentUnits=AreaUnit.KILOMETERS2, Required=True, ErrMessage='assume default reservoir area (81 km2)', - ToolTipText='Reservoir Area [81 km2]', + ToolTipText='Reservoir Area', ) ) self.reservoir_thickness: Parameter = parameter_dict_entry( @@ -176,7 +176,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: CurrentUnits=LengthUnit.KILOMETERS, Required=True, ErrMessage='assume default reservoir thickness (0.286 km2)', - ToolTipText='Reservoir Thickness [0.286 km]', + ToolTipText='Reservoir Thickness', ) ) self.reservoir_life_cycle: Parameter = parameter_dict_entry( @@ -189,7 +189,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: AllowableRange=list(range(1, 101, 1)), Required=True, ErrMessage='assume default Reservoir Life Cycle (25 years)', - ToolTipText='Reservoir Life Cycle [30 years]', + ToolTipText='Reservoir Life Cycle', ) ) @@ -205,7 +205,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: CurrentUnits=HeatCapacityUnit.KJPERKM3C, Required=True, ErrMessage='assume default Rock Heat Capacity (2.84E+12 kJ/km3C)', - ToolTipText='Rock Heat Capacity [2.84E+12 kJ/km3C]', + ToolTipText='Rock Heat Capacity', ) ) self.fluid_heat_capacity: Parameter = parameter_dict_entry( @@ -219,7 +219,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: CurrentUnits=HeatCapacityUnit.kJPERKGC, Required=True, ErrMessage='calculate a value based on the water temperature', - ToolTipText='Specific Heat Capacity Of Water [4.18 kJ/kgC]', + ToolTipText='Specific Heat Capacity Of Water', ) ) self.fluid_density: Parameter = parameter_dict_entry( @@ -233,7 +233,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: CurrentUnits=DensityUnit.KGPERKILOMETERS3, Required=True, ErrMessage='calculate a value based on the water temperature', - ToolTipText='Density Of Water [1.0E+12 kg/km3]', + ToolTipText='Density Of Water', ) ) self.rock_density: Parameter = parameter_dict_entry( @@ -247,7 +247,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter: CurrentUnits=DensityUnit.KGPERKILOMETERS3, Required=True, ErrMessage='assume default Density Of Rock (2.55E+12 kg/km3)', - ToolTipText='Density Of Rock [2.55E+12 kg/km3]', + ToolTipText='Density Of Rock', ) ) self.rock_recoverable_heat: Parameter = parameter_dict_entry(