funzione ingiustamente spostatw

This commit is contained in:
2025-06-23 12:24:13 +02:00
parent 0e82f4b084
commit d88267dc4d

View File

@@ -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}") print(f"File CSV orario salvato in: {path_export_hourly}")
return df_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(): def genera_giornaliero():
# Carica il file CSV orario # Carica il file CSV orario
df = pd.read_csv('files/gen_pv/output_gen_pv_hourly.csv', index_col=0, parse_dates=True) 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() 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: if joePlaying:
joe.terminate() joe.terminate()
joe.kill() joe.kill()