Skip to content

Commit 206f7f5

Browse files
pluralize parameter units, minor code cleanup
1 parent f85d6ae commit 206f7f5

5 files changed

Lines changed: 7 additions & 13 deletions

docs/Fervo_Project_Red.md.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ geometry for the Project Red simulation are detailed below:
124124
| :--- | :--- | :--- |
125125
| Number of Fractures | `{{ input_params['Number of Fractures'] }}` | {{ input_params_comments['Number of Fractures'] }} |
126126
| Fracture Shape | `{{ input_params['Fracture Shape'] }}` | {{ input_params_comments['Fracture Shape'] }} |
127-
| Fracture Height | `{{ input_params['Fracture Height'] }}` | {{ input_params_comments['Fracture Height'] }} |
128-
| Fracture Width | `{{ input_params['Fracture Width'] }}` | {{ input_params_comments['Fracture Width'] }} |
129-
| Fracture Separation | `{{ input_params['Fracture Separation'] }} meter` | {{ input_params_comments['Fracture Separation'] }} |
127+
| Fracture Height | `{{ input_params['Fracture Height'] | replace("foot", "feet") }}` | {{ input_params_comments['Fracture Height'] }} |
128+
| Fracture Width | `{{ input_params['Fracture Width'] | replace("foot", "feet") }}` | {{ input_params_comments['Fracture Width'] }} |
129+
| Fracture Separation | `{{ input_params['Fracture Separation'] }} meters` | {{ input_params_comments['Fracture Separation'] }} |
130130

131131
.. raw:: html
132132

-28.1 KB
Loading
-27.4 KB
Loading
-18 KB
Loading

src/geophires_docs/generate_fervo_project_red_2026_docs.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ def _generate_fracture_sensitivity_graph(
529529
f'Running {_LONG_TERM_FORECAST_PLANT_LIFETIME_YEARS}-year fracture sensitivity analysis (including power generation)...'
530530
)
531531

532+
# noinspection DuplicatedCode
532533
is_steady_state = _get_steady_state_mask(df_prod, steady_state_start_years)
533534

534535
df_included = df_prod[is_steady_state]
@@ -598,20 +599,13 @@ def _generate_fracture_sensitivity_graph(
598599
result: GeophiresXResult = client.get_geophires_result(input_params)
599600

600601
avg_generation_param: str = 'Average Annual Net Electricity Generation'
601-
avg_generation_vu: dict[str, Any] = result.result['SURFACE EQUIPMENT SIMULATION RESULTS'][
602-
avg_generation_param
603-
# 'Average Net Electricity Generation'
604-
]
602+
avg_generation_vu: dict[str, Any] = result.result['SURFACE EQUIPMENT SIMULATION RESULTS'][avg_generation_param]
605603
avg_generation_u = 'GWh'
606604
avg_generation_v: float = (
607-
PlainQuantity(avg_generation_vu['value'], avg_generation_vu['unit'])
608-
.to(
609-
avg_generation_u
610-
#'MW'
611-
)
612-
.magnitude
605+
PlainQuantity(avg_generation_vu['value'], avg_generation_vu['unit']).to(avg_generation_u).magnitude
613606
)
614607

608+
# noinspection DuplicatedCode
615609
profile = _get_full_production_temperature_profile((input_params, result))
616610
time_steps_per_year: int = int(_get_input_parameters_dict(input_params)['Time steps per year'])
617611

0 commit comments

Comments
 (0)