Skip to content

Commit 8baab1d

Browse files
minor comment re: mutating stim cost per well input parameters
1 parent 3f60846 commit 8baab1d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/geophires_x/Economics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3199,6 +3199,11 @@ def calculate_stimulation_costs(self, model: Model) -> PlainQuantity:
31993199
per_well_cost_precision
32003200
)
32013201

3202+
# In an ideal world we might use separate calculated values instead of mutating
3203+
# stimulation_cost_per_injection_well and stimulation_cost_per_production_well above. But the current
3204+
# pattern is OK for now and nominally captures the fact that the value is mutated internally by
3205+
# virtue of the Provided attribute remaining False.
3206+
32023207
direct_stim_cost_per_injection_well_cstim_u = self.stimulation_cost_per_injection_well.quantity().to(
32033208
self.Cstim.CurrentUnits).magnitude
32043209
direct_stim_cost_per_production_well_cstim_u = self.stimulation_cost_per_production_well.quantity().to(

0 commit comments

Comments
 (0)