Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
6276c37
SAM single-owner PPA economic model proof-of-concept
softwareengineerprogrammer Apr 8, 2025
b237c0c
WIP - SAM NPV + IRR
softwareengineerprogrammer Apr 8, 2025
97d0419
Bump version: 3.8.14 → 3.8.15
softwareengineerprogrammer Apr 8, 2025
facbbbf
use absolute path when loading SAM economics data
softwareengineerprogrammer Apr 8, 2025
db3ae7b
Bump version: 3.8.15 → 3.8.16
softwareengineerprogrammer Apr 8, 2025
3e7f836
unignore sam_economics JSON files
softwareengineerprogrammer Apr 8, 2025
97a3f22
Bump version: 3.8.16 → 3.8.17
softwareengineerprogrammer Apr 8, 2025
7aeafd6
Bump version: 3.8.17 → 3.8.18
softwareengineerprogrammer Apr 8, 2025
5a781cd
fix py38-incompatible type annotation
softwareengineerprogrammer Apr 9, 2025
cea0d27
Economic model name: 'SAM Single Owner PPA'
softwareengineerprogrammer Apr 9, 2025
522e934
try __future__ for py38 compatibility in EconomicsSam.py
softwareengineerprogrammer Apr 9, 2025
6c24b89
method rename, py39 compat
softwareengineerprogrammer Apr 9, 2025
06bc7b9
set sam ppa price from geophires electricity price
softwareengineerprogrammer Apr 9, 2025
aafbff2
py38-compatible dict union
softwareengineerprogrammer Apr 9, 2025
dcb9cd8
DRY-ify Economics.read_parameters warning messages
softwareengineerprogrammer Apr 9, 2025
e91a37c
Validate only electricity is allowed for SAM econ model (for now)
softwareengineerprogrammer Apr 9, 2025
eb24b59
split SAM economics test into separate test_economics_sam file
softwareengineerprogrammer Apr 9, 2025
64ff19a
WIP - preparation for SAM cash flow table
softwareengineerprogrammer Apr 9, 2025
15405c7
WIP - SAM-style cash flow (instead of trying to graft into GEOPHIRES …
softwareengineerprogrammer Apr 10, 2025
a4c3257
Basic SAM-style Cash Flow profile (WIP)
softwareengineerprogrammer Apr 10, 2025
d6e527b
total revenue
softwareengineerprogrammer Apr 10, 2025
79a95e5
more cash flow properties, first meaningful unit test assertion
softwareengineerprogrammer Apr 10, 2025
061d13e
attempt to include EconomicsSam.py with pre-commit but doesn't work, …
softwareengineerprogrammer Apr 10, 2025
083480d
property tax expense + total operating expense
softwareengineerprogrammer Apr 10, 2025
8a6302f
ignore SAM ssc files
softwareengineerprogrammer Apr 10, 2025
dbc8cdc
create separate generic egs test case for SAM economics, tweaks to sy…
softwareengineerprogrammer Apr 10, 2025
5f570e8
fix ITC/capex calculation
softwareengineerprogrammer Apr 10, 2025
e66eb25
total installed cost
softwareengineerprogrammer Apr 10, 2025
dede522
cash flow from investing activities
softwareengineerprogrammer Apr 10, 2025
5ce7c6f
pre-commit-applied fixes to GEOPHIRESv3.py, which apparently is cover…
softwareengineerprogrammer Apr 10, 2025
898839b
Financing activities, rounding adjustment to match SAM GUI
softwareengineerprogrammer Apr 10, 2025
9dc5e7a
fix new pre-commit failure in base_test_case.py
softwareengineerprogrammer Apr 10, 2025
9911db3
pre-tax returns
softwareengineerprogrammer Apr 10, 2025
5cff67c
After-tax returns
softwareengineerprogrammer Apr 10, 2025
dd679a4
py38 compatibility
softwareengineerprogrammer Apr 10, 2025
b90c429
fix double EBITDA row, print tabulated cash flow in test
softwareengineerprogrammer Apr 10, 2025
6c74ca9
add missing blank rows
softwareengineerprogrammer Apr 10, 2025
443d9a1
IRR + NPV, years off-by-one fix
softwareengineerprogrammer Apr 10, 2025
79635ee
remove addressed FIXMEs
softwareengineerprogrammer Apr 10, 2025
a007576
after-tax LCOE
softwareengineerprogrammer Apr 10, 2025
1f120e5
print tsv SAM cash flow profile in output file
softwareengineerprogrammer Apr 10, 2025
788dcf1
FIXME provide entire generation profile to SAM
softwareengineerprogrammer Apr 10, 2025
4da7f68
Configify single owner output properties
softwareengineerprogrammer Apr 11, 2025
93819bf
read from exported SAM cash flow CSV as template instead of hardcodin…
softwareengineerprogrammer Apr 11, 2025
ccfcc26
match all category patterns
softwareengineerprogrammer Apr 11, 2025
c342a63
match all category patterns
softwareengineerprogrammer Apr 11, 2025
043297f
move cash flow function to EconomicsSamCashFlow.py
softwareengineerprogrammer Apr 11, 2025
842c5cd
fix _get_file_path util function
softwareengineerprogrammer Apr 11, 2025
fb2c618
generate suggestions to populate single owner output properties
softwareengineerprogrammer Apr 11, 2025
0df42f3
more properties configured with help of suggestion utility
softwareengineerprogrammer Apr 11, 2025
d919493
suggestions tweaks
softwareengineerprogrammer Apr 11, 2025
5416493
WIP - skip ambiguous mapping for now
softwareengineerprogrammer Apr 11, 2025
3c418c9
more suggestions enhancements
softwareengineerprogrammer Apr 11, 2025
a0c3f59
+2 debt properties, category header fixes, suggestions enhancement
softwareengineerprogrammer Apr 11, 2025
8863e00
+3 more properties
softwareengineerprogrammer Apr 11, 2025
8b3615e
collapse consecutive blank lines
softwareengineerprogrammer Apr 11, 2025
2c347d9
move SAM depreciation table to separate file from cash flow
softwareengineerprogrammer Apr 11, 2025
19b0c41
debt closing costs
softwareengineerprogrammer Apr 11, 2025
095384f
debt/equity ratio
softwareengineerprogrammer Apr 11, 2025
6fd249d
approximate GEOPHIRES electricity price escalation rate to SAM
softwareengineerprogrammer Apr 11, 2025
d6966a6
pass inflation to SAM
softwareengineerprogrammer Apr 11, 2025
5c5d8f9
pass property tax rate to SAM
softwareengineerprogrammer Apr 11, 2025
46522ac
output interest rate (tangentially related to WIP to pass it to SAM)
softwareengineerprogrammer Apr 11, 2025
cd8fc67
fix unit test failure introduced in d6966a642ac9d71a22743d25755e6321b…
softwareengineerprogrammer Apr 11, 2025
a323151
remove addressed FIXME
softwareengineerprogrammer Apr 11, 2025
a5a98f4
discount rate & term interest rate
softwareengineerprogrammer Apr 11, 2025
63e228b
fix category row label case
softwareengineerprogrammer Apr 11, 2025
b5b7cfd
consolidate tabulation into shared method
softwareengineerprogrammer Apr 11, 2025
6ae07d7
workaround unwanted tabulate formatting of year headers as floats
softwareengineerprogrammer Apr 11, 2025
30a9739
fix unit test failure caused by error introduced in https://github.co…
softwareengineerprogrammer Apr 11, 2025
2a12a16
parse SAM cash flow profile in client, add example_SAM-single-owner-PPA
softwareengineerprogrammer Apr 11, 2025
fc9a7b3
remove addressed FIXME
softwareengineerprogrammer Apr 11, 2025
029578d
link reference to https://github.com/softwareengineerprogrammer/GEOPH…
softwareengineerprogrammer Apr 11, 2025
32df87c
generate mapping from cashloan module doc
softwareengineerprogrammer Apr 14, 2025
d28d4ad
Generate properties from Singleowner module doc
softwareengineerprogrammer Apr 14, 2025
9892a6d
designator row special case
softwareengineerprogrammer Apr 14, 2025
0eda5e2
generate all of _SINGLE_OWNER_OUTPUT_PROPERTIES from JSON + additiona…
softwareengineerprogrammer Apr 14, 2025
24127b7
'Interest on reserves' special case (appears to only be present in in…
softwareengineerprogrammer Apr 14, 2025
72dabc2
TODOs re: construction financing and other financing properties
softwareengineerprogrammer Apr 14, 2025
8f0cd67
regenerate SAM econ model example
softwareengineerprogrammer Apr 14, 2025
6806f16
format SAM cash flow profile with commas
softwareengineerprogrammer Apr 14, 2025
5b05f3c
enable designator rows
softwareengineerprogrammer Apr 14, 2025
9dd64f7
Don't output R&C profile for SAM econ model - it's inaccurate & redun…
softwareengineerprogrammer Apr 14, 2025
e933fcf
Bump version: 3.8.18 → 3.9.0
softwareengineerprogrammer Apr 14, 2025
fddcf29
rename properties json
softwareengineerprogrammer Apr 14, 2025
eb32851
fix client parsing of SAM cash flow profile
softwareengineerprogrammer Apr 14, 2025
0fbc9c5
Bump version: 3.9.0 → 3.9.1
softwareengineerprogrammer Apr 14, 2025
3837337
break out separate geophires_sam_economics utility module
softwareengineerprogrammer Apr 14, 2025
c8412ab
Add Generic_400_MWe.sam
softwareengineerprogrammer Apr 14, 2025
d3dcea3
PySAM generation instructions
softwareengineerprogrammer Apr 14, 2025
708006a
remove code that was moved to geophires_sam_economics
softwareengineerprogrammer Apr 14, 2025
d5d6553
SAM case - 100% sales tax basis. Has no effect on base case PySAM JSO…
softwareengineerprogrammer Apr 14, 2025
274786e
'One-time Grants Etc' + 'Other Incentives' -> SAM Other IBI
softwareengineerprogrammer Apr 15, 2025
4e46bc2
MC user guide web interface link
softwareengineerprogrammer Apr 15, 2025
b964414
minor code cleanup
softwareengineerprogrammer Apr 15, 2025
4d27614
SAM Economic Models documentation
softwareengineerprogrammer Apr 15, 2025
ae3be09
simulate entire GEOPHIRES generation profile by using SAM AC Degradat…
softwareengineerprogrammer Apr 15, 2025
542257c
fix invalid end-use option error message
softwareengineerprogrammer Apr 15, 2025
17f4d4a
test drawdown generation profile
softwareengineerprogrammer Apr 15, 2025
852a28e
update SAM example for generation profile change in ae3be090ca5c3461c…
softwareengineerprogrammer Apr 15, 2025
80299df
Plant Lifetime -> Analysis period, Term tenor
softwareengineerprogrammer Apr 15, 2025
59103ba
Limit construction years = 1
softwareengineerprogrammer Apr 15, 2025
79d898e
sync .sam project
softwareengineerprogrammer Apr 15, 2025
551b54c
fix payback period output alignment
softwareengineerprogrammer Apr 15, 2025
262cf19
don't output payback period, VIR, or MOIC for SAM econ model
softwareengineerprogrammer Apr 15, 2025
9cc0e5b
fix documentation table rendering
softwareengineerprogrammer Apr 15, 2025
e44a654
Bump version: 3.9.1 → 3.9.2
softwareengineerprogrammer Apr 15, 2025
1e0a65c
Stub v3.9 changelog entry
softwareengineerprogrammer Apr 15, 2025
1d1cef5
unit test electricity generation profile with FIXME WIP for apparent …
softwareengineerprogrammer Apr 15, 2025
bdcda6e
deeper testing of generation profile, clarification of discrepancy be…
softwareengineerprogrammer Apr 15, 2025
0956487
fix documentation errors, add descriptions + links to SAM pages
softwareengineerprogrammer Apr 16, 2025
806d688
SAM economics PTC
softwareengineerprogrammer Apr 17, 2025
1a32631
Use GEOPHIRES PPA pricing model instead of escalation-based approxima…
softwareengineerprogrammer Apr 17, 2025
74dd284
set heat_rate to zero. has no effect on results. per SAM docs: 'If yo…
softwareengineerprogrammer Apr 17, 2025
a55fbcc
capacity factor WIP
softwareengineerprogrammer Apr 17, 2025
3441053
finish integrating capacity/utilization factor, including resolution …
softwareengineerprogrammer Apr 17, 2025
4de04d4
Merge branch 'capacity-factor' into econ-model-single-owner-ppa-sam-2
softwareengineerprogrammer Apr 17, 2025
71c7205
fix py38 compatibility issue
softwareengineerprogrammer Apr 17, 2025
c49ded5
minor tweak to client parsing
softwareengineerprogrammer Apr 17, 2025
9739b46
set values on utility rate module correctly (change has no apparent e…
softwareengineerprogrammer Apr 17, 2025
df2c9b4
support Inflation Rate During Construction
softwareengineerprogrammer Apr 17, 2025
da7bb4e
regenerate SAM example
softwareengineerprogrammer Apr 17, 2025
f1c969a
skip output properties known to not be present
softwareengineerprogrammer Apr 17, 2025
9f0bc10
Documentation of LCOE as nominal for SAM econ models
softwareengineerprogrammer Apr 17, 2025
230c8fc
Bump version: 3.9.2 → 3.9.3
softwareengineerprogrammer Apr 17, 2025
65d6ca9
HIP-RA MC test intermittent failure note
softwareengineerprogrammer Apr 17, 2025
2f6ad5d
update SAM defaults (.sam project file + PySAM JSON) with 5% EPC cost…
softwareengineerprogrammer Apr 17, 2025
da5eeb8
link to https://www.nrel.gov/docs/fy23osti/84979.pdf in Beckers CLGS …
softwareengineerprogrammer Apr 19, 2025
d68a2a0
skip cents for large presumed-to-be-dollar amounts >M
softwareengineerprogrammer Apr 22, 2025
cdad669
Bump version: 3.9.3 → 3.9.4
softwareengineerprogrammer Apr 22, 2025
891af26
pin coolprop version for python 3.8 (relevant build failure: https://…
softwareengineerprogrammer Apr 22, 2025
d5be6f5
correct comment from d68a2a0db550bf1a1c18280b061e6b3386a279ee - in th…
softwareengineerprogrammer Apr 22, 2025
ddd9cec
sam cash flow profile csv support
softwareengineerprogrammer Apr 22, 2025
e16ef31
Bump version: 3.9.4 → 3.9.5
softwareengineerprogrammer Apr 22, 2025
1b7dff1
use class for Economics.sam_economics
softwareengineerprogrammer Apr 23, 2025
7c25721
base fed/state income tax splits on assumption of 21% max fed tax rat…
softwareengineerprogrammer Apr 23, 2025
c4530f3
Consolidate assertHasLogRecordWithMessage
softwareengineerprogrammer Apr 23, 2025
4ec9726
Log warning about GTR being ignored if it's provided
softwareengineerprogrammer Apr 23, 2025
14ec85c
log ignored warning if EIR provided
softwareengineerprogrammer Apr 23, 2025
b1ae784
README examples entry
softwareengineerprogrammer Apr 23, 2025
f892dde
instructions in geophires_sam_economics/README.md
softwareengineerprogrammer Apr 23, 2025
f5258f5
remove/comment out gross revenue tax rate and inflated equity interes…
softwareengineerprogrammer Apr 24, 2025
80ad46d
set nameplate capacity to max total generation (instead of net) and a…
softwareengineerprogrammer Apr 24, 2025
c4f1166
comments cleanup
softwareengineerprogrammer Apr 24, 2025
5f98dac
consolidate unit conversion
softwareengineerprogrammer Apr 24, 2025
966881b
minor code cleaup
softwareengineerprogrammer Apr 24, 2025
566beaa
update PySAM/.sam project file defaults to reflect changes/stay appro…
softwareengineerprogrammer Apr 24, 2025
449b961
example .txt description & param organization
softwareengineerprogrammer Apr 24, 2025
323dc91
no log error/warning for skipped properties
softwareengineerprogrammer Apr 24, 2025
5131023
improve internal utility method
softwareengineerprogrammer Apr 24, 2025
917497f
Disable debug logging/unknown property suggestions unless ENABLE_GEOP…
softwareengineerprogrammer Apr 24, 2025
7888b96
minor comment cleanup
softwareengineerprogrammer Apr 24, 2025
4c49129
Outputs.py - remove unused import, suppress inaccurate PyCharm inspec…
softwareengineerprogrammer Apr 24, 2025
7fde926
add reference to https://github.com/NREL/GEOPHIRES-X/issues/382
softwareengineerprogrammer Apr 24, 2025
aaedb55
clean up non-calculated econ output placeholders
softwareengineerprogrammer Apr 24, 2025
7ea08b3
Address TODO/WIP re: non-SAM cash flow calculation when SAM economic …
softwareengineerprogrammer Apr 24, 2025
43ac078
unit test claimed to have been added in previous commit (7ea08b3f00eb…
softwareengineerprogrammer Apr 24, 2025
83381a8
update changelog stub
softwareengineerprogrammer Apr 24, 2025
a3ed2eb
fix doc typo
softwareengineerprogrammer Apr 30, 2025
6d2587b
README references tweaks
softwareengineerprogrammer May 1, 2025
fa32232
Prevent intermittent GitHub Actions failures on Windows by setting MP…
softwareengineerprogrammer May 1, 2025
ec6cffa
Conditionally set matplotlib backend to Agg only if running in GitHub…
softwareengineerprogrammer May 1, 2025
c45bebc
Revert "Prevent intermittent GitHub Actions failures on Windows by se…
softwareengineerprogrammer May 1, 2025
6936cec
Workaround for https://github.com/NREL/GEOPHIRES-X/issues/365 with sh…
softwareengineerprogrammer May 1, 2025
cf59e7c
remove stray breaking import accidentally introduced in previous commit
softwareengineerprogrammer May 1, 2025
67a4f09
utili-fy additional calls relevant to https://github.com/NREL/GEOPHIR…
softwareengineerprogrammer May 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.8.14
current_version = 3.9.5
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion .cookiecutterrc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ default_context:
sphinx_doctest: "no"
sphinx_theme: "sphinx-py3doc-enhanced-theme"
test_matrix_separate_coverage: "no"
version: 3.8.14
version: 3.9.5
version_manager: "bump2version"
website: "https://github.com/NREL"
year_from: "2023"
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
# pre-commit install --install-hooks
# To update the versions:
# pre-commit autoupdate
exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg|src/geophires_x)(/|$)'
exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg|src/geophires_x(?!/(GEOPHIRESv3|EconomicsSam|EconomicsSamCashFlow)\.py))(/|$)'
# Note the order is intentional to avoid multiple passes of the hooks
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.1
rev: v0.11.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- repo: https://github.com/psf/black
rev: 24.2.0
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ Changelog
GEOPHIRES-X (2023-2025)
------------------------

3.9
^^^

.. TODO/WIP stub

`release <https://github.com/NREL/GEOPHIRES-X/releases/tag/v3.9.5>`__

SAM Single-owner PPA Economic Model


3.8
^^^

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ include How-to-extend-GEOPHIRES-X.md
include geophires-logo.png

prune References
prune geophires_sam_economics

global-exclude *.py[cod] __pycache__/* *.so *.dylib
13 changes: 9 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ Free software: `MIT license <LICENSE>`__
:alt: Supported implementations
:target: https://pypi.org/project/geophires-x

.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.8.14.svg
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.9.5.svg
:alt: Commits since latest release
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.8.14...main
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.9.5...main

.. |docs| image:: https://readthedocs.org/projects/GEOPHIRES-X/badge/?style=flat
:target: https://nrel.github.io/GEOPHIRES-X
Expand Down Expand Up @@ -299,7 +299,8 @@ well drilling, surface plant, etc.) are either provided by the user or calculate
correlations.

For more information on the theoretical basis for GEOPHIRES see
`GEOPHIRES v2.0: updated geothermal techno‐economic simulation tool (Beckers & McCabe, 2019) <https://github.com/NREL/GEOPHIRES-X/blob/fb5caadfa419c3bd05de656a33700d085fbc0432/References/GEOPHIRES%20v2.0%20User%20Manual.pdf>`__.
`GEOPHIRES v2.0: updated geothermal techno‐economic simulation tool (Beckers & McCabe, 2019) <https://github.com/NREL/GEOPHIRES-X/blob/fb5caadfa419c3bd05de656a33700d085fbc0432/References/GEOPHIRES%20v2.0%20User%20Manual.pdf>`__
and `GEOPHIRES reference materials <References/references.md#geophires>`__.

Parameters
----------
Expand Down Expand Up @@ -458,6 +459,10 @@ Example-specific web interface deeplinks are listed in the Link column.
- `example_SHR-2.txt <tests/examples/example_SHR-2.txt>`__
- `.out <tests/examples/example_SHR-2.out>`__
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_SHR-2>`__
* - SAM Single-owner PPA
- `example_SAM-single-owner-PPA.txt <tests/examples/example_SAM-single-owner-PPA.txt>`__
- `.out <tests/examples/example_SAM-single-owner-PPA.out>`__
- .. FIXME TODO once SAM econ model in web interface: `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_SAM-single-owner-PPA>`__

.. raw:: html

Expand Down Expand Up @@ -499,7 +504,7 @@ Extending GEOPHIRES-X
Additional Documentation
------------------------

Additional materials can be found in `/References </References>`__.
Additional materials can be found in `/References </References/references.md>`__.


Development
Expand Down
4 changes: 4 additions & 0 deletions docs/Monte-Carlo-User-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,7 @@ python -mgeophires_monte_carlo GEOPHIRESv3.py GEOPHIRES-example1.txt MC_GEOPHIRE
## Documentation

See [module documentation](reference/geophires_monte_carlo.html)

## Web Interface

Monte Carlo is available in the web interface at [gtp.scientificwebservices.com/monte-carlo](https://gtp.scientificwebservices.com/monte-carlo)
54 changes: 54 additions & 0 deletions docs/SAM-Economic-Models.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
year = '2025'
author = 'NREL'
copyright = f'{year}, {author}'
version = release = '3.8.14'
version = release = '3.9.5'

pygments_style = 'trac'
templates_path = ['./templates']
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Contents
How-to-extend-GEOPHIRES-X
hip_ra_x_parameters
Monte-Carlo-User-Guide
SAM-Economic-Models
.. reference/index

Indices and tables
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ requires = [
extend-exclude = ["static", "ci/templates", "src/geophires_x"]

# Incrementally add files to this list as they are cleaned up
extend-include=["src/geophires_x/GEOPHIRESv3.py"]
extend-include=[
"src/geophires_x/GEOPHIRESv3.py",
"src/geophires_x/EconomicsSam.py",
"src/geophires_x/EconomicsSamCashFlow.py",
]

ignore = [
"RUF001", # ruff-specific rules ambiguous-unicode-character-string
Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read(*names, **kwargs):

setup(
name='geophires-x',
version='3.8.14',
version='3.9.5',
license='MIT',
description='GEOPHIRES is a free and open-source geothermal techno-economic simulator.',
long_description='{}\n{}'.format(
Expand Down Expand Up @@ -77,9 +77,14 @@ def read(*names, **kwargs):
'h5py==3.10.0', # TODO resolve apparent h5py==3.11.0 build compatibility issues on some platforms
'scipy',
'iapws',
'coolprop',
'coolprop; python_version > "3.8"',
# coolprop > 6.7.0 fails on Python 3.8, see
# https://github.com/softwareengineerprogrammer/GEOPHIRES/actions/runs/14599234458/job/40952924048?pr=69#step:5:302
'coolprop==6.7.0; python_version == "3.8"',
'rich',
'pylocker',
'nrel-pysam',
'tabulate',
],
extras_require={
# eg:
Expand Down
5 changes: 3 additions & 2 deletions src/geophires_monte_carlo/MC_GeoPHIRES3.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from geophires_monte_carlo.common import _get_logger
from geophires_x.GeoPHIRESUtils import InsertImagesIntoHTML
from geophires_x.GeoPHIRESUtils import render_default
from geophires_x.MatplotlibUtils import plt_subplot
from geophires_x_client import GeophiresInputParameters
from geophires_x_client import GeophiresXClient
from geophires_x_client import GeophiresXResult
Expand Down Expand Up @@ -519,7 +520,7 @@ def main(command_line_args=None):
for i in range(len(inputs)):
input = inputs[i][0]
plt.figure(figsize=(8, 6))
ax = plt.subplot()
ax = plt_subplot()
ax.set_title(input)
ax.set_xlabel('Random Values')
ax.set_ylabel('Probability')
Expand Down Expand Up @@ -553,7 +554,7 @@ def main(command_line_args=None):
annotations += display

plt.figure(figsize=(8, 6))
ax = plt.subplot()
ax = plt_subplot()
ax.set_title(output)
ax.set_xlabel('Output units')
ax.set_ylabel('Probability')
Expand Down
4 changes: 4 additions & 0 deletions src/geophires_sam_economics/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# scratch files
draft_issue.md
sam-cash-flow-table-comparison.csv
sam-cash-flow-table-saved.csv
Loading