Skip to content

Commit 216c3f0

Browse files
Use str, Enum instead of StrEnum (which is only compatible with py3.11+)
1 parent 3772c17 commit 216c3f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/geophires_x/Economics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,9 +1009,9 @@ def __init__(self, model: Model):
10091009
for it in WellDrillingCostCorrelation]) +
10101010
f'. '
10111011
f'Baseline correlations (1-4) are from '
1012-
f'{_WellDrillingCostCorrelationCitation.NREL_COST_CURVE_2025}.'
1012+
f'{_WellDrillingCostCorrelationCitation.NREL_COST_CURVE_2025.value}.'
10131013
f' Intermediate and ideal correlations (6-17) are from '
1014-
f'{_WellDrillingCostCorrelationCitation.GEOVISION}.'
1014+
f'{_WellDrillingCostCorrelationCitation.GEOVISION.value}.'
10151015

10161016
)
10171017
self.DoAddOnCalculations = self.ParameterDict[self.DoAddOnCalculations.Name] = boolParameter(

src/geophires_x/OptionList.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# copyright, 2023, Malcolm I Ross
22

3-
from enum import Enum, StrEnum
3+
from enum import Enum
44

55

66
class GeophiresInputEnum(str, Enum):
@@ -156,7 +156,7 @@ def from_input_string(input_string: str):
156156
raise ValueError(f'Unknown Reservoir Volume input value: {input_string}')
157157

158158

159-
class _WellDrillingCostCorrelationCitation(StrEnum):
159+
class _WellDrillingCostCorrelationCitation(str, Enum):
160160
"""
161161
Values are abbreviated citations used in tooltip text.
162162
Commented full citations are present in CHANGELOG and could also be used in future documentation.

0 commit comments

Comments
 (0)