Skip to content

Commit f10233f

Browse files
minor code clean up - variance analysis filename variable name
1 parent 6043813 commit f10233f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/geophires_docs/generate_fervo_project_red_2026_docs.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
_PRODUCTION_CSV_FILENAME = 'project_red_2026_production_data.csv'
3333
_MODEL_CSV_FILENAME = 'project_red_2026_model_data.csv'
34-
_STEADY_STATE_CSV_FILENAME = 'project_red_2026_variance_analysis.csv'
34+
_VARIANCE_ANALYSIS_CSV_FILENAME = 'project_red_2026_variance_analysis.csv'
3535
_GENERATED_GRAPH_FILENAME_STEM = 'fervo_project_red-2026_production-temperature-data-vs-modeling'
3636

3737
_STEADY_STATE_START_YEARS = 0.041625
@@ -268,7 +268,6 @@ def _get_steady_state_mask(df_prod: pd.DataFrame, steady_state_start_years: floa
268268
def _generate_production_temperature_comparison_graph(
269269
production_csv_path: Path,
270270
model_csv_path: Path,
271-
steady_state_csv_path: Path,
272271
output_path_stem: Path,
273272
steady_state_start_years: float = _STEADY_STATE_START_YEARS,
274273
geophires_data: pd.Series | None = None,
@@ -803,7 +802,7 @@ def generate_fervo_project_red_2026_docs():
803802
_BUILD_DIR.mkdir(parents=True, exist_ok=True)
804803
production_csv_path_ = _BUILD_DIR / _PRODUCTION_CSV_FILENAME
805804
model_csv_path_ = _BUILD_DIR / _MODEL_CSV_FILENAME
806-
steady_state_csv_path = _BUILD_DIR / _STEADY_STATE_CSV_FILENAME
805+
variance_analysis_csv_path = _BUILD_DIR / _VARIANCE_ANALYSIS_CSV_FILENAME
807806
generated_graph_path_stem = _get_file_path(f'../../docs/_images/{_GENERATED_GRAPH_FILENAME_STEM}')
808807

809808
_log.info('Extracting data from image...')
@@ -867,14 +866,13 @@ def generate_fervo_project_red_2026_docs():
867866
df_variance['Fervo_Modeled_Temperature_C'] = model_interpolator(df_variance['Time_Years'])
868867
df_variance['GEOPHIRES_Modeled_Temperature_C'] = geo_interp(df_variance['Time_Years'])
869868

870-
df_variance.to_csv(steady_state_csv_path, index=False)
869+
df_variance.to_csv(variance_analysis_csv_path, index=False)
871870

872871
_tab = ' '
873872

874873
_generate_production_temperature_comparison_graph(
875874
production_csv_path_,
876875
model_csv_path_,
877-
steady_state_csv_path,
878876
generated_graph_path_stem,
879877
geophires_data=geophires_series,
880878
fervo_modeled_stats_caption=f'\n{_tab}{fervo_modeled_stats_caption}\n',

0 commit comments

Comments
 (0)