Skip to content

Commit 5970474

Browse files
Merge remote-tracking branch 'origin/fervo-case-study' into fervo-case-study
2 parents 39aa781 + 90ba8c0 commit 5970474

29 files changed

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023, NREL
3+
Copyright (c) 2023-2024, NREL
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

README.rst

Lines changed: 3 additions & 3 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.25.svg
50+
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.4.28.svg
5151
:alt: Commits since latest release
52-
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.4.25...main
52+
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.4.28...main
5353

5454
.. |docs| image:: https://readthedocs.org/projects/GEOPHIRES-X/badge/?style=flat
5555
:target: https://nrel.github.io/GEOPHIRES-X
@@ -65,7 +65,7 @@ Getting Started
6565
Web Interface
6666
-------------
6767

68-
A web interface is available at `tinyurl.com/geophires <https://tinyurl.com/geophires>`__
68+
A web interface is available at `bit.ly/GEOPHIRES <https://bit.ly/GEOPHIRES>`__
6969

7070
Installation
7171
------------
Binary file not shown.

References/JEDI.pdf

-3.44 MB
Binary file not shown.

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.25'
21+
version = release = '3.4.28'
2222

2323
pygments_style = 'trac'
2424
templates_path = ['./templates']
-34.9 KB
Binary file not shown.

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

src/geophires_monte_carlo/MC_GeoPHIRES3.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,14 @@ def work_package(pass_list: list):
218218
shutil.copyfile(result.output_file_path, tmp_output_file)
219219
elif args.Code_File.endswith('HIP_RA.py'):
220220
hip_ra_client: HipRaClient = HipRaClient()
221-
result: HipRaResult = hip_ra_client.get_hip_ra_result(HipRaInputParameters(from_file_path=Path(tmp_input_file)))
221+
result: HipRaResult = hip_ra_client.get_hip_ra_result(
222+
HipRaInputParameters(file_path_or_params_dict=Path(tmp_input_file))
223+
)
222224
shutil.copyfile(result.output_file_path, tmp_output_file)
223225
elif args.Code_File.endswith('hip_ra_x.py'):
224226
hip_ra_x_client: HipRaXClient = HipRaXClient()
225227
result: HipRaResult = hip_ra_x_client.get_hip_ra_result(
226-
HipRaInputParameters(from_file_path=Path(tmp_input_file))
228+
HipRaInputParameters(file_path_or_params_dict=Path(tmp_input_file))
227229
)
228230
shutil.copyfile(result.output_file_path, tmp_output_file)
229231
else:
@@ -358,6 +360,7 @@ def main(command_line_args=None):
358360
if 'MC_OUTPUT_FILE' in args and args.MC_OUTPUT_FILE is not None
359361
else str(Path(Path(args.Input_file).parent, 'MC_Result.txt').absolute())
360362
)
363+
code_file_name = Path(args.Code_File).name
361364
python_path = 'python'
362365
html_path = ''
363366

@@ -450,6 +453,14 @@ def main(command_line_args=None):
450453
results_pd = pd.read_csv(output_file)
451454
df = pd.DataFrame(results_pd)
452455

456+
if len(results) < 1:
457+
# TODO surface actual exceptions instead of giving this generic message
458+
raise RuntimeError(
459+
'No MC results generated, '
460+
f'this is likely caused by {code_file_name} throwing an exception '
461+
f'when run with your input file.'
462+
)
463+
453464
# Compute the stats along the specified axes.
454465
mins = np.nanmin(results, 0)
455466
maxs = np.nanmax(results, 0)

0 commit comments

Comments
 (0)