Skip to content

Commit e8559d0

Browse files
Merge pull request #168 from softwareengineerprogrammer/state-itc
State ITC Amount [v3.13.15]
2 parents b5a79b5 + 0980776 commit e8559d0

12 files changed

Lines changed: 71 additions & 11 deletions

File tree

.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.13.13
2+
current_version = 3.13.15
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.13.13
57+
version: 3.13.15
5858
version_manager: "bump2version"
5959
website: "https://github.com/NREL"
6060
year_from: "2023"

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ GEOPHIRES v3 (2023-2026)
88
3.13
99
^^^^
1010

11-
3.13.13: `Well integrity parameterization to trigger redrilling; Drawdown Parameter Schedule; Input params CSV unit and comment parsing <https://github.com/NatLabRockies/GEOPHIRES-X/pull/502>`__ | `release <https://github.com/NREL/GEOPHIRES-X/releases/tag/v3.13.13>`__
11+
3.13.15: `Well integrity parameterization to trigger redrilling; Drawdown Parameter Schedule; Input params CSV unit and comment parsing; State ITC Amount <https://github.com/NatLabRockies/GEOPHIRES-X/pull/502>`__ | `release <https://github.com/NREL/GEOPHIRES-X/releases/tag/v3.13.15>`__
1212

1313
3.13.9: `Add hip-ra-x-result.json schema and HipRaXResult <https://github.com/NatLabRockies/GEOPHIRES-X/pull/499>`__ | `release <https://github.com/NREL/GEOPHIRES-X/releases/tag/v3.13.9>`__
1414

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.13.13.svg
61+
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.13.15.svg
6262
:alt: Commits since latest release
63-
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.13.13...main
63+
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.13.15...main
6464

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

docs/SAM-Economic-Models.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ The following table describes how GEOPHIRES parameters are transformed into SAM
3737
| `Starting Heat Sale Price`, `Ending Heat Sale Price`, `Heat Escalation Rate Per Year`, `Heat Escalation Start Year` | Revenue → Capacity Payments | `Fixed amount`, `Capacity payment amount` | `Singleowner` | `cp_capacity_payment_type = 1`, `cp_capacity_payment_amount` | |
3838
| `Starting Cooling Sale Price`, `Ending Cooling Sale Price`, `Cooling Escalation Rate Per Year`, `Cooling Escalation Start Year` | Revenue → Capacity Payments | `Fixed amount`, `Capacity payment amount` | `Singleowner` | `cp_capacity_payment_type = 1`, `cp_capacity_payment_amount` | |
3939
| `Investment Tax Credit Rate` | Incentives → Investment Tax Credit (ITC) | `Federal``Percentage (%)` | `Singleowner` | `itc_fed_percent` | Note that unlike the BICYCLE Economic Model's `Total capital costs`, SAM Economic Model's `Total CAPEX` is the total installed cost and does not subtract ITC value (if present). |
40+
| `State Investment Tax Credit Amount` | Incentives → Investment Tax Credit (ITC) | `State``Amount ($)` | `Singleowner` | `itc_sta_amount` | |
4041
| `Production Tax Credit Electricity` | Incentives → Production Tax Credit (PTC) | `Federal``Amount ($/kWh)` | `Singleowner` | `ptc_fed_amount` | .. N/A |
4142
| `Production Tax Credit Duration` | Incentives → Production Tax Credit (PTC) | `Federal``Term (years)` | `Singleowner` | `ptc_fed_term` | .. N/A |
4243
| `Production Tax Credit Inflation Adjusted`, `Inflation Rate` | Incentives → Production Tax Credit (PTC) | `Federal``Escalation (%/yr)` | `Singleowner` | `ptc_fed_escal` | If `Production Tax Credit Inflation Adjusted` = True, GEOPHIRES set's SAM's PTC escalation rate to the inflation rate. SAM applies the escalation rate to years 2 and later of the project cash flow. Note that this produces escalation rates that are similar to inflation-adjusted equivalents, but not exactly equal. |

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.13.13'
21+
version = release = '3.13.15'
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.13.13',
16+
version='3.13.15',
1717
license='MIT',
1818
description='GEOPHIRES is a free and open-source geothermal techno-economic simulator.',
1919
long_description='{}\n{}'.format(

src/geophires_x/Economics.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,17 @@ def __init__(self, model: Model):
12141214
PreferredUnits=PercentUnit.TENTH,
12151215
CurrentUnits=PercentUnit.TENTH,
12161216
ErrMessage="assume default investment tax credit rate (0)",
1217-
ToolTipText="Investment tax credit rate (see docs)"
1217+
ToolTipText="Investment tax credit rate (ITC). For SAM Economic Models, this is the federal rate."
1218+
)
1219+
self.ritc_state_amount = self.ParameterDict[self.ritc_state_amount.Name] = floatParameter(
1220+
'State Investment Tax Credit Amount',
1221+
DefaultValue=0.0,
1222+
Min=0.0,
1223+
Max=self.totalcapcost.Max,
1224+
UnitType=self.totalcapcost.UnitType,
1225+
PreferredUnits=self.totalcapcost.PreferredUnits,
1226+
CurrentUnits=self.totalcapcost.CurrentUnits,
1227+
ToolTipText='State investment tax credit amount (state ITC).'
12181228
)
12191229
self.PTR = self.ParameterDict[self.PTR.Name] = floatParameter(
12201230
"Property Tax Rate",
@@ -2775,7 +2785,8 @@ def _warn(_msg: str) -> None:
27752785
self.royalty_rate_schedule,
27762786
self.royalty_supplemental_payments,
27772787
self.construction_capex_schedule,
2778-
self.bond_financing_start_year
2788+
self.bond_financing_start_year,
2789+
self.ritc_state_amount
27792790
]
27802791
for sam_em_only_param in sam_em_only_params:
27812792
if sam_em_only_param.Provided:

src/geophires_x/EconomicsSam.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,9 @@ def _get_single_owner_parameters(model: Model) -> dict[str, Any]:
680680
geophires_itc_tenths = Decimal(econ.RITC.value)
681681
ret['itc_fed_percent'] = [float(geophires_itc_tenths * Decimal(100))]
682682

683+
geophires_state_itc_usd = Decimal(econ.ritc_state_amount.quantity().to(convertible_unit('USD')).magnitude)
684+
ret['itc_sta_amount'] = [float(geophires_state_itc_usd)]
685+
683686
if econ.PTCElec.Provided:
684687
ret['ptc_fed_amount'] = [econ.PTCElec.quantity().to(convertible_unit('USD/kWh')).magnitude]
685688

src/geophires_x/__init__.py

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

0 commit comments

Comments
 (0)