From d88267dc4d401a295f2aba185fd0b3f578c4b216 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Mon, 23 Jun 2025 12:24:13 +0200 Subject: [PATCH] funzione ingiustamente spostatw --- Fotovoltaico.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Fotovoltaico.py b/Fotovoltaico.py index 6f1485c..dcd8111 100644 --- a/Fotovoltaico.py +++ b/Fotovoltaico.py @@ -91,12 +91,6 @@ def export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hour print(f"File CSV orario salvato in: {path_export_hourly}") return df_hourly -# Scegli il percorso per il nuovo file orario -path_export_hourly = path_export.replace('.csv', '_hourly.csv') - -# Esporta il file orario -df_hourly = export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hourly) - def genera_giornaliero(): # Carica il file CSV orario df = pd.read_csv('files/gen_pv/output_gen_pv_hourly.csv', index_col=0, parse_dates=True) @@ -170,6 +164,14 @@ def genera_giornaliero(): ) fig.show() +# Scegli il percorso per il nuovo file orario +path_export_hourly = path_export.replace('.csv', '_hourly.csv') + +# Esporta il file orario +df_hourly = export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hourly) + + + if joePlaying: joe.terminate() joe.kill() \ No newline at end of file