Skip to content

Commit 90586c5

Browse files
consolidate into write_stimulation_costs_outputs method
1 parent 1ab2dc3 commit 90586c5

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/geophires_x/Outputs.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,7 @@ def PrintOutputs(self, model: Model):
496496
cpw_label = Outputs._field_label(econ.drilling_and_completion_costs_per_well.display_name, 47)
497497
f.write(f' {cpw_label}{econ.drilling_and_completion_costs_per_well.value:10.2f} {econ.Cwell.CurrentUnits.value}\n')
498498

499-
f.write(f' {econ.Cstim.display_name}: {econ.Cstim.value:10.2f} {econ.Cstim.CurrentUnits.value}\n')
500-
501-
self.write_stim_costs_per_well_outputs(econ, f)
499+
self.write_stimulation_costs_outputs(econ, f)
502500

503501
f.write(f' {econ.Cplant.display_name}: {econ.Cplant.value:10.2f} {econ.Cplant.CurrentUnits.value}\n')
504502
if model.surfaceplant.enduse_option.value.is_cogeneration_end_use_option:
@@ -965,7 +963,13 @@ def o(output_param: OutputParameter):
965963
f.write(NL)
966964

967965
# noinspection PyMethodMayBeStatic
968-
def write_stim_costs_per_well_outputs(self, econ: Economics, f) -> None:
966+
def write_stimulation_costs_outputs(self, econ: Economics, f) -> None:
967+
f.write(
968+
f' '
969+
f'{econ.Cstim.display_name}: {econ.Cstim.value:10.2f}'
970+
f' '
971+
f'{econ.Cstim.CurrentUnits.value}\n'
972+
)
969973

970974
def _write_output(_stim_cost_per_well_output: OutputParameter) -> None:
971975
if _stim_cost_per_well_output.value is not None:

0 commit comments

Comments
 (0)