Skip to content

Commit bc335b1

Browse files
EconomicModel comparison fix affecting Wanju example
1 parent c98d036 commit bc335b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/geophires_x/AGSEconomics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def Calculate(self, model: Model) -> None:
183183
"""
184184
model.logger.info(f'Init {__class__!s}: {sys._getframe().f_code.co_name}')
185185

186-
if self.econmodel.value != EconomicModel.CLGS: # do a classical econ calculation
186+
if self.econmodel.value is not EconomicModel.CLGS: # do a classical econ calculation
187187
super().Calculate(model)
188188
else:
189189
# use the CLGS-Style economic calculations

src/geophires_x/AGSOutputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def PrintOutputs(self, model: Model):
7272
model.surfaceplant.NetElectricityProduced.value, fill_value="extrapolate")
7373
model.surfaceplant.NetElectricityProduced.value = f(np.arange(0, len(model.wellbores.ProducedTemperature.value), 1.0))
7474

75-
if not model.economics.econmodel.value == EconomicModel.CLGS:
75+
if model.economics.econmodel.value is not EconomicModel.CLGS:
7676
super().PrintOutputs(model)
7777
else:
7878
with open(self.output_file, 'w', encoding='UTF-8') as f:

tests/examples/Wanju_Yuan_Closed-Loop_Geothermal_Energy_Recovery.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Reservoir Depth, 4.0, ----km
2727
Cylindrical Reservoir Input Depth, 4.0, -----km
2828
Cylindrical Reservoir Output Depth, 4.0, ------km
2929
Cylindrical Reservoir Length, 5.0, ----km
30-
Reservoir Model,0, ---simople cylinder reservoir model
30+
Reservoir Model,0, ---simple cylinder reservoir model
3131
Number of Production Wells,1, ---[-]
3232
Number of Injection Wells,1, ---[-]
3333

0 commit comments

Comments
 (0)