Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Fixed Graph function not working properly with different time scales
  • Loading branch information
sirfilips authored Apr 2, 2024
1 parent ddfd719 commit 9eb78f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def convert_json_to_excel(messages, excel_file, time_interval, json_file_path, k
# Chiamata alla funzione per l'analisi di Fourier con il nuovo set di dati e campionamento personalizzato
if perform_fourier_analysis:
fourier_analysis(df_grouped, time_interval, df, 1)
else:
df_grouped = df.groupby(df['date'].dt.date).size()
#else:
#df_grouped = df.groupby(df['date'].dt.date).size()


# Imposta il percorso del file Excel
Expand Down Expand Up @@ -347,4 +347,4 @@ def main():
print("Opzione non valida. Riprova.")

if __name__ == '__main__':
main()
main()

0 comments on commit 9eb78f8

Please sign in to comment.