Skip to content

Commit f160062

Browse files
change line item name to 'S-DAC CO2 extracted'
1 parent 34d0b05 commit f160062

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/geophires_x/EconomicsSamCalculations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,12 @@ def _insert_blank_line_before(before_row_name: str) -> None:
286286
def _for_operational_years(_row: list[Any]) -> list[Any]:
287287
return [*([''] * (self._pre_revenue_years_count - 1)), 0, *_row]
288288

289+
line_item_display_name = self.s_dac_carbon_extracted_annually.Name.replace(
290+
'Tonnes per Year CO2 extracted', 'S-DAC CO2 extracted'
291+
)
289292
_insert_row_before(
290293
REVENUE_CATEGORY_ROW_NAME,
291-
f'{self.s_dac_carbon_extracted_annually.Name} ({self.s_dac_carbon_extracted_annually.CurrentUnits.value})',
294+
f'{line_item_display_name} ({self.s_dac_carbon_extracted_annually.CurrentUnits.value})',
292295
_for_operational_years(self.s_dac_carbon_extracted_annually.value),
293296
)
294297
_insert_blank_line_before(REVENUE_CATEGORY_ROW_NAME)

tests/examples/S-DAC-GT-2.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Simulation Metadata
66
----------------------
77
GEOPHIRES Version: 3.13.9
88
Simulation Date: 2026-06-01
9-
Simulation Time: 11:06
10-
Calculation Time: 0.194 sec
9+
Simulation Time: 11:07
10+
Calculation Time: 0.189 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -241,7 +241,7 @@ Electricity to grid (kWh) 0.0 93,616,277 93,6
241241
Electricity from grid (kWh) 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
242242
Electricity to grid net (kWh) 0.0 93,616,277 93,616,277 93,616,237 93,614,757 93,602,181 93,553,835 93,436,136 93,218,785 92,882,117 92,418,275 91,829,057 91,122,869 90,311,987 89,410,462 88,432,708 87,392,608 86,303,005 85,175,464 84,020,183 82,846,027 81,660,605 80,470,381 79,280,797 78,096,396 76,920,935 75,757,496 74,608,577 73,476,180 72,361,886 71,321,030
243243

244-
Tonnes per Year CO2 extracted (tonne/yr) 0 78,330.80 78,330.80 78,330.79 78,330.21 78,325.28 78,306.33 78,260.16 78,174.81 78,042.38 77,859.43 77,626.22 77,345.52 77,021.56 76,659.30 76,263.89 75,840.32 75,393.28 74,927.04 74,445.39 73,951.72 73,448.95 72,939.63 72,425.96 71,909.81 71,392.80 70,876.27 70,361.40 69,849.14 69,340.31 68,860.68
244+
S-DAC CO2 extracted (tonne/yr) 0 78,330.80 78,330.80 78,330.79 78,330.21 78,325.28 78,306.33 78,260.16 78,174.81 78,042.38 77,859.43 77,626.22 77,345.52 77,021.56 76,659.30 76,263.89 75,840.32 75,393.28 74,927.04 74,445.39 73,951.72 73,448.95 72,939.63 72,425.96 71,909.81 71,392.80 70,876.27 70,361.40 69,849.14 69,340.31 68,860.68
245245

246246
REVENUE
247247
PPA price (cents/kWh) 0.0 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50 5.50

0 commit comments

Comments
 (0)