Skip to content

Commit 78711a3

Browse files
Merge pull request #88 from softwareengineerprogrammer/hide-sam-em-itc
Don't display incorrect SAM Economic Models ITC [v3.9.40]
2 parents 856ade4 + 70daea9 commit 78711a3

File tree

10 files changed

+28
-22
lines changed

10 files changed

+28
-22
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.9.39
2+
current_version = 3.9.40
33
commit = True
44
tag = True
55

.cookiecutterrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ default_context:
5454
sphinx_doctest: "no"
5555
sphinx_theme: "sphinx-py3doc-enhanced-theme"
5656
test_matrix_separate_coverage: "no"
57-
version: 3.9.39
57+
version: 3.9.40
5858
version_manager: "bump2version"
5959
website: "https://github.com/NREL"
6060
year_from: "2023"

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ Free software: `MIT license <LICENSE>`__
5858
:alt: Supported implementations
5959
:target: https://pypi.org/project/geophires-x
6060

61-
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.9.39.svg
61+
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.9.40.svg
6262
:alt: Commits since latest release
63-
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.9.39...main
63+
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.9.40...main
6464

6565
.. |docs| image:: https://readthedocs.org/projects/GEOPHIRES-X/badge/?style=flat
6666
:target: https://nrel.github.io/GEOPHIRES-X

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
year = '2025'
1919
author = 'NREL'
2020
copyright = f'{year}, {author}'
21-
version = release = '3.9.39'
21+
version = release = '3.9.40'
2222

2323
pygments_style = 'trac'
2424
templates_path = ['./templates']

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def read(*names, **kwargs):
1313

1414
setup(
1515
name='geophires-x',
16-
version='3.9.39',
16+
version='3.9.40',
1717
license='MIT',
1818
description='GEOPHIRES is a free and open-source geothermal techno-economic simulator.',
1919
long_description='{}\n{}'.format(

src/geophires_x/Outputs.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,16 @@ def PrintOutputs(self, model: Model):
482482
f.write(f' Stimulation costs (for redrilling): {econ.Cstim.value:10.2f} {econ.Cstim.CurrentUnits.value}\n')
483483

484484
if model.economics.RITCValue.value:
485-
f.write(f' {model.economics.RITCValue.display_name}: {-1*model.economics.RITCValue.value:10.2f} {model.economics.RITCValue.CurrentUnits.value}\n')
485+
if model.economics.econmodel.value != EconomicModel.SAM_SINGLE_OWNER_PPA:
486+
f.write(f' {model.economics.RITCValue.display_name}: {-1*model.economics.RITCValue.value:10.2f} {model.economics.RITCValue.CurrentUnits.value}\n')
487+
else:
488+
# TODO Extract value from SAM Cash Flow Profile per
489+
# https://github.com/NREL/GEOPHIRES-X/issues/404.
490+
# For now we skip displaying the value because it can be/probably is usually mathematically
491+
# inaccurate, and even if it's not, it's redundant with the cash flow profile and also
492+
# misleading/confusing/wrong to display it as a capital cost since it is not a capital
493+
# expenditure.
494+
pass
486495

487496
capex_label = Outputs._field_label(econ.CCap.display_name, 50)
488497
f.write(f' {capex_label}{econ.CCap.value:10.2f} {econ.CCap.CurrentUnits.value}\n')

src/geophires_x/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.9.39'
1+
__version__ = '3.9.40'

tests/examples/Fervo_Project_Cape-4.out

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.9.36
7+
GEOPHIRES Version: 3.9.39
88
Simulation Date: 2025-07-25
9-
Simulation Time: 10:59
10-
Calculation Time: 1.734 sec
9+
Simulation Time: 14:32
10+
Calculation Time: 1.794 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -104,7 +104,6 @@ Simulation Metadata
104104
Field gathering system costs: 56.44 MUSD
105105
Total surface equipment costs: 1560.49 MUSD
106106
Exploration costs: 30.00 MUSD
107-
Investment Tax Credit: -688.54 MUSD
108107
Total CAPEX: 2639.39 MUSD
109108

110109

tests/examples/example_SAM-single-owner-PPA-2.out

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.9.28
8-
Simulation Date: 2025-07-02
9-
Simulation Time: 12:19
10-
Calculation Time: 0.975 sec
7+
GEOPHIRES Version: 3.9.39
8+
Simulation Date: 2025-07-25
9+
Simulation Time: 14:32
10+
Calculation Time: 0.983 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -105,7 +105,6 @@ Simulation Metadata
105105
Field gathering system costs: 70.43 MUSD
106106
Total surface equipment costs: 969.26 MUSD
107107
Exploration costs: 30.00 MUSD
108-
Investment Tax Credit: -459.83 MUSD
109108
Total CAPEX: 1609.42 MUSD
110109

111110

tests/examples/example_SAM-single-owner-PPA.out

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.9.28
8-
Simulation Date: 2025-07-02
9-
Simulation Time: 12:19
10-
Calculation Time: 1.163 sec
7+
GEOPHIRES Version: 3.9.39
8+
Simulation Date: 2025-07-25
9+
Simulation Time: 14:32
10+
Calculation Time: 1.177 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -106,7 +106,6 @@ Simulation Metadata
106106
Field gathering system costs: 5.80 MUSD
107107
Total surface equipment costs: 150.23 MUSD
108108
Exploration costs: 3.89 MUSD
109-
Investment Tax Credit: -63.71 MUSD
110109
Total CAPEX: 222.97 MUSD
111110

112111

0 commit comments

Comments
 (0)