Skip to content

Commit 42e1953

Browse files
Merge pull request NREL#182 from softwareengineerprogrammer/main
Unit test for MC HIP-RA-X
2 parents 215a372 + 3d18121 commit 42e1953

File tree

12 files changed

+57
-9
lines changed

12 files changed

+57
-9
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.4.22
2+
current_version = 3.4.24
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.4.22
57+
version: 3.4.24
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
@@ -47,9 +47,9 @@ Free software: `MIT license <LICENSE>`__
4747
:alt: Supported implementations
4848
:target: https://pypi.org/project/geophires-x
4949

50-
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.4.22.svg
50+
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.4.24.svg
5151
:alt: Commits since latest release
52-
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.4.22...main
52+
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.4.24...main
5353

5454
.. |docs| image:: https://readthedocs.org/projects/GEOPHIRES-X/badge/?style=flat
5555
: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 = '2023'
1919
author = 'NREL'
2020
copyright = f'{year}, {author}'
21-
version = release = '3.4.22'
21+
version = release = '3.4.24'
2222

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

setup.py

Lines changed: 2 additions & 2 deletions
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.4.22',
16+
version='3.4.24',
1717
license='MIT',
1818
description='GEOPHIRES is a free and open-source geothermal techno-economic simulator.',
1919
long_description='{}\n{}'.format(
@@ -73,7 +73,7 @@ def read(*names, **kwargs):
7373
'pandas',
7474
'matplotlib',
7575
# Used by Adv*/AGS extensions; may break tox pypy jobs if those are re-enabled
76-
'h5py',
76+
'h5py==3.10.0', # TODO resolve apparent h5py==3.11.0 build compatibility issues on some platforms
7777
'scipy',
7878
'iapws',
7979
'coolprop',

src/geophires_monte_carlo/MC_GeoPHIRES3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def Write_HTML_Output(
9696
for index, row in df.iterrows():
9797
data = row.values[0 : len(outputs)]
9898

99-
# have to deal with the special case where thr last column is actually
99+
# have to deal with the special case where the last column is actually
100100
# a compound string with multiple columns in it that looks like this:
101101
# ' (Gradient 1:47.219846973456924;Reservoir Temperature:264.7789623351493;...)'
102102
str_to_parse = str(row.values[len(outputs)]).strip().replace('(', '').replace(')', '')

src/geophires_x/Reservoir.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,9 +625,11 @@ def read_parameters(self, model: Model) -> None:
625625
position = int(parts[1]) - 1
626626
model.reserv.gradient.value[position] = ParameterToModify.value
627627
if model.reserv.gradient.value[position] > 1.0:
628+
# TODO refactor to avoid heuristic-based unit conversions
628629
model.reserv.gradient.value[position] = model.reserv.gradient.value[
629630
position] / 1000.0 # convert C/m
630631
model.reserv.gradient.CurrentUnits = TemperatureGradientUnit.DEGREESCPERM
632+
631633
if model.reserv.gradient.value[position] < 1e-6:
632634
# convert 0 C/m gradients to very small number, avoids divide by zero errors later
633635
model.reserv.gradient.value[position] = 1e-6

src/geophires_x/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.4.22'
1+
__version__ = '3.4.24'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
parameters.rst
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Reservoir Temperature, 250.0
2+
Rejection Temperature, 60.0
3+
Reservoir Porosity, 10.0
4+
Reservoir Area, 55.0
5+
Reservoir Thickness, 0.25
6+
Reservoir Life Cycle, 25

0 commit comments

Comments
 (0)