Skip to content

Commit 6b15926

Browse files
parse SAM-EM ITC output for GeophiresXResult (NatLabRockies#404)
1 parent 3d4ea1f commit 6b15926

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/geophires_x_client/geophires_x_result.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class GeophiresXResult:
8181
'Accrued financing during construction',
8282
# Displayed for economic models that don't treat inflation costs as capital costs (non-SAM-EM)
8383
'Inflation costs during construction',
84+
# Displayed as economic parameter for SAM-EM (non-SAM-EMs treat as capital cost)
85+
'Investment Tax Credit',
8486
'Project lifetime',
8587
'Capacity factor',
8688
'Project NPV',

tests/geophires_x_tests/test_economics_sam.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def _lcoe(r: GeophiresXResult) -> float:
7474
self.assertEqual(rdr['value'], 7.0)
7575
self.assertEqual(rdr['unit'], '%')
7676

77+
self.assertIsNotNone(base_result.result['ECONOMIC PARAMETERS']['Investment Tax Credit'])
78+
7779
def test_drawdown(self):
7880
r = self._get_result(
7981
{'Plant Lifetime': 20, 'End-Use Option': 1}, file_path=self._get_test_file_path('../examples/example13.txt')

0 commit comments

Comments
 (0)