Skip to content

Commit f4e34f5

Browse files
Merge pull request NREL#327 from softwareengineerprogrammer/main
GeophiresInputParameters.as_text, minor miscellaneous updates [3.6.7]
2 parents 9dc9e4e + ee3e69d commit f4e34f5

File tree

9 files changed

+17
-11
lines changed

9 files changed

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

README.rst

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

59-
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.6.6.svg
59+
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.6.7.svg
6060
:alt: Commits since latest release
61-
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.6.6...main
61+
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.6.7...main
6262

6363
.. |docs| image:: https://readthedocs.org/projects/GEOPHIRES-X/badge/?style=flat
6464
:target: https://nrel.github.io/GEOPHIRES-X
@@ -482,7 +482,7 @@ A HIP-RA web interface is available at `gtp.scientificwebservices.com/hip-ra <ht
482482
Monte Carlo
483483
-----------
484484

485-
`Monte Carlo User Guide <https://softwareengineerprogrammer.github.io/GEOPHIRES-X/Monte-Carlo-User-Guide.html>`__
485+
`Monte Carlo User Guide <https://nrel.github.io/GEOPHIRES-X/Monte-Carlo-User-Guide.html>`__
486486

487487
A Monte Carlo web interface is available at `gtp.scientificwebservices.com/monte-carlo <https://gtp.scientificwebservices.com/monte-carlo>`__.
488488

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
year = '2024'
1919
author = 'NREL'
2020
copyright = f'{year}, {author}'
21-
version = release = '3.6.6'
21+
version = release = '3.6.7'
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.6.6',
16+
version='3.6.7',
1717
license='MIT',
1818
description='GEOPHIRES is a free and open-source geothermal techno-economic simulator.',
1919
long_description='{}\n{}'.format(

src/geophires_x/WellBores.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,10 @@ def ProdPressureDropAndPumpingPowerUsingIndexes(
510510
# Minimum production pump inlet pressure and minimum wellhead pressure
511511
if Trock_degC < 373.9:
512512
Pminimum_kPa = vapor_pressure_water_kPa(Trock_degC) + Pexcess_kPa
513-
else: #above the critical water temperature, vapor no longer occurs and vapor pressure can no longer be calculated. A "dummy" vapor pressure can be assumed as the fluid phase no longer impacts the pump depth.
514-
Pminimum_kPa = 100 #setting artificially to 1 bar = 100 kPa
513+
else:
514+
# Above the critical water temperature, vapor no longer occurs and vapor pressure can no longer be
515+
# calculated. A "dummy" vapor pressure can be assumed as the fluid phase no longer impacts the pump depth.
516+
Pminimum_kPa = 100 # 1 bar = 100 kPa
515517

516518
if usebuiltinppwellheadcorrelation:
517519
Pprodwellhead = Pminimum_kPa # production wellhead pressure [kPa]

src/geophires_x/__init__.py

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

src/geophires_x_client/geophires_input_parameters.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def as_file_path(self):
6969
def get_output_file_path(self):
7070
return Path(tempfile.gettempdir(), f'geophires-result_{self._id}.out')
7171

72+
def as_text(self):
73+
with open(self.as_file_path(), encoding='UTF-8') as f:
74+
return f.read()
75+
7276
def __hash__(self):
7377
"""TODO make hashes for equivalent parameters equal"""
7478
return self._id

src/hip_ra_x/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ HIP-RA-X is the successor version to HIP-RA.
1010

1111
## Parameters
1212

13-
[Parameters Reference](https://softwareengineerprogrammer.github.io/GEOPHIRES-X/hip_ra_x_parameters.html)
13+
[Parameters Reference](https://nrel.github.io/GEOPHIRES-X/hip_ra_x_parameters.html)

0 commit comments

Comments
 (0)