diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_histo.pdf b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_histo.pdf index 0d102af..4211848 100644 Binary files a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_histo.pdf and b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_histo.pdf differ diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_histo.png b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_histo.png new file mode 100644 index 0000000..d23ac9a Binary files /dev/null and b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_histo.png differ diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_log.log b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_log.log index 25ad6ba..fde9d96 100644 --- a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_log.log +++ b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_log.log @@ -3943,3 +3943,59 @@ on 31932: 2026-10-27 09:36:43,814 - INFO - Jonction à la Station_ID: 25259 ent 2026-10-27 09:37:32,146 - INFO - Table des STATION entrée et fix, nbre: 200 2026-10-27 09:37:53,481 - INFO - Phase 5: Fin de traitement en 02 (m) 45 (s), résultats enregistrés dans ~/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_stats 2026-10-27 09:37:53,481 - INFO - Execution terminée sans erreur en 02(m)45(s) +2026-10-27 10:57:53,118 - INFO - ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +2026-10-27 10:57:53,119 - INFO - ║ Calcul des statistiques par entrées d'une BD Therion ║ +2026-10-27 10:57:53,120 - INFO - ║ Script pyThStat par : alexandre.pont@yahoo.fr ║ +2026-10-27 10:57:53,120 - INFO - ║ Version : 2026.10.27 ║ +2026-10-27 10:57:53,121 - INFO - ║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql ║ +2026-10-27 10:57:53,121 - INFO - ║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats ║ +2026-10-27 10:57:53,122 - INFO - ║ Date : 2026-10-27 10h57m53s ║ +2026-10-27 10:57:53,122 - INFO - ║ Mode : update ║ +2026-10-27 10:57:53,123 - INFO - ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +2026-10-27 10:57:53,126 - INFO - Phase 5: Écriture des statistiques dans le fichier: ~\Synthese-PSM_LARRA\Outputs\readme.md +2026-10-27 10:57:53,133 - INFO - Table des CENTRELINE, longueur: [(340527.49, 15625.25, 8956.61)] +2026-10-27 10:59:19,717 - INFO - Table des STATION entrée et fix, nbre: 200 +2026-10-27 11:00:28,193 - INFO - Phase 5: Fin de traitement en 02 (m) 35 (s), résultats enregistrés dans ~\Outputs\DB_Synthese-PSM_LARRA_Stats\DB_Synthese-PSM_LARRA_stats +2026-10-27 11:00:28,195 - INFO - Execution terminée sans erreur en 02(m)35(s) +2026-10-27 11:04:42,412 - INFO - ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +2026-10-27 11:04:42,413 - INFO - ║ Calcul des statistiques par entrées d'une BD Therion ║ +2026-10-27 11:04:42,417 - INFO - ║ Script pyThStat par : alexandre.pont@yahoo.fr ║ +2026-10-27 11:04:42,417 - INFO - ║ Version : 2026.10.27 ║ +2026-10-27 11:04:42,418 - INFO - ║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql ║ +2026-10-27 11:04:42,418 - INFO - ║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats ║ +2026-10-27 11:04:42,418 - INFO - ║ Date : 2026-10-27 11h04m42s ║ +2026-10-27 11:04:42,418 - INFO - ║ Mode : update ║ +2026-10-27 11:04:42,419 - INFO - ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +2026-10-27 11:04:42,420 - INFO - Phase 5: Écriture des statistiques dans le fichier: ~\Synthese-PSM_LARRA\Outputs\readme.md +2026-10-27 11:04:42,423 - INFO - Table des CENTRELINE, longueur: [(340527.49, 15625.25, 8956.61)] +2026-10-27 11:05:52,867 - INFO - Table des STATION entrée et fix, nbre: 200 +2026-10-27 11:06:49,692 - INFO - Phase 5: Fin de traitement en 02 (m) 07 (s), résultats enregistrés dans ~\Outputs\DB_Synthese-PSM_LARRA_Stats\DB_Synthese-PSM_LARRA_stats +2026-10-27 11:06:49,694 - INFO - Execution terminée sans erreur en 02(m)07(s) +2026-10-27 11:11:48,713 - INFO - ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +2026-10-27 11:11:48,714 - INFO - ║ Calcul des statistiques par entrées d'une BD Therion ║ +2026-10-27 11:11:48,714 - INFO - ║ Script pyThStat par : alexandre.pont@yahoo.fr ║ +2026-10-27 11:11:48,714 - INFO - ║ Version : 2026.10.27 ║ +2026-10-27 11:11:48,714 - INFO - ║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql ║ +2026-10-27 11:11:48,714 - INFO - ║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats ║ +2026-10-27 11:11:48,715 - INFO - ║ Date : 2026-10-27 11h11m48s ║ +2026-10-27 11:11:48,715 - INFO - ║ Mode : update ║ +2026-10-27 11:11:48,715 - INFO - ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +2026-10-27 11:11:48,716 - INFO - Phase 5: Écriture des statistiques dans le fichier: ~\Synthese-PSM_LARRA\Outputs\readme.md +2026-10-27 11:11:48,718 - INFO - Table des CENTRELINE, longueur: [(340527.49, 15625.25, 8956.61)] +2026-10-27 11:13:17,662 - INFO - Table des STATION entrée et fix, nbre: 200 +2026-10-27 11:14:26,811 - INFO - Phase 5: Fin de traitement en 02 (m) 38 (s), résultats enregistrés dans ~\Outputs\DB_Synthese-PSM_LARRA_Stats\DB_Synthese-PSM_LARRA_stats +2026-10-27 11:14:26,813 - INFO - Execution terminée sans erreur en 02(m)38(s) +2026-10-27 11:20:14,106 - INFO - ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +2026-10-27 11:20:14,106 - INFO - ║ Calcul des statistiques par entrées d'une BD Therion ║ +2026-10-27 11:20:14,106 - INFO - ║ Script pyThStat par : alexandre.pont@yahoo.fr ║ +2026-10-27 11:20:14,107 - INFO - ║ Version : 2026.10.27 ║ +2026-10-27 11:20:14,107 - INFO - ║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql ║ +2026-10-27 11:20:14,107 - INFO - ║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats ║ +2026-10-27 11:20:14,107 - INFO - ║ Date : 2026-10-27 11h20m14s ║ +2026-10-27 11:20:14,107 - INFO - ║ Mode : update ║ +2026-10-27 11:20:14,108 - INFO - ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +2026-10-27 11:20:14,109 - INFO - Phase 5: Écriture des statistiques dans le fichier: ~\Synthese-PSM_LARRA\Outputs\readme.md +2026-10-27 11:20:14,111 - INFO - Table des CENTRELINE, longueur: [(340527.49, 15625.25, 8956.61)] +2026-10-27 11:21:21,103 - INFO - Table des STATION entrée et fix, nbre: 200 +2026-10-27 11:22:23,216 - INFO - Phase 5: Fin de traitement en 02 (m) 09 (s), résultats enregistrés dans ~\Outputs\DB_Synthese-PSM_LARRA_Stats\DB_Synthese-PSM_LARRA_stats +2026-10-27 11:22:23,218 - INFO - Execution terminée sans erreur en 02(m)09(s) diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.pdf b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.pdf index 9217e66..e8f4d36 100644 Binary files a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.pdf and b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.pdf differ diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.png b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.png new file mode 100644 index 0000000..4a986cd Binary files /dev/null and b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.png differ diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_stats.csv b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_stats.csv index c213805..bcc8fae 100644 --- a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_stats.csv +++ b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_stats.csv @@ -2,10 +2,10 @@ ║ Calcul des statistiques par entrées d'une BD Therion * ║ Script pyThStat par : alexandre.pont@yahoo.fr * ║ Version : 2026.10.27 * -║ Fichier source : ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA.sql * -║ Dossier destination : ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA_Stats * -║ Date : 2026-10-27 09h35m07s * -* Durée calcul : 02 (m) 45 (s) sans erreur * +║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql * +║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats * +║ Date : 2026-10-27 11h20m14s * +* Durée calcul : 02 (m) 09 (s) sans erreur * ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝* **Développement total centerline (m):** développement: 340527.49 , dupliqué: 15625.25 , surface: 8956.61 Toutes les stations sont comptabilisées et raccordées diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.pdf b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.pdf index 0b3e6fd..79a4ac6 100644 Binary files a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.pdf and b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.pdf differ diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.png b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.png new file mode 100644 index 0000000..b4e2846 Binary files /dev/null and b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.png differ diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_yearCum.pdf b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_yearCum.pdf deleted file mode 100644 index 24af9b9..0000000 Binary files a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_yearCum.pdf and /dev/null differ diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year_Cum.pdf b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year_Cum.pdf new file mode 100644 index 0000000..7500195 Binary files /dev/null and b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year_Cum.pdf differ diff --git a/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year_Cum.png b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year_Cum.png new file mode 100644 index 0000000..840a629 Binary files /dev/null and b/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year_Cum.png differ diff --git a/Outputs/readme.md b/Outputs/readme.md index 54daff7..f9a33ee 100644 --- a/Outputs/readme.md +++ b/Outputs/readme.md @@ -252,15 +252,38 @@ Toutes les stations sont comptabilisées et raccordées | 2026 | 257,03 | 340 527,49 | 0,00 | 15 625,25 | 0,00 | 8 956,61 | +-------------- +### Graphiques + +![Répartition des directions](./DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.png) + +![Développement par années](./DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.png) + +![Développement cumulé](./DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year_Cum.png) + + +

+Répartition des directions +

+ +

+Développement par années +

+ +

+Développement cumulé +

+ + -------------- ### Mise à jour | | | | :---------------- | :--- | | Script pyThStat par | alexandre.pont@yahoo.fr | | Version | 2026.10.27 | -| Fichier source | ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA.sql | -| Dossier destination | ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA_Stats | -| Date | 2026-10-27 09h35m07s | -| Durée calcul |02 (m) 45 (s) sans erreur | +| Fichier source | ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql | +| Dossier destination | ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats | +| Date | 2026-10-27 11h20m14s | +| Durée calcul |02 (m) 09 (s) sans erreur | -------------- diff --git a/Scripts/pyThStat/.vscode/settings.json b/Scripts/pyThStat/.vscode/settings.json index 5bc8358..26f9f02 100644 --- a/Scripts/pyThStat/.vscode/settings.json +++ b/Scripts/pyThStat/.vscode/settings.json @@ -26,6 +26,7 @@ "inverseses", "isolees", "jonctionnées", + "LARRA", "lastrowid", "Lenght", "LENGHT", @@ -52,6 +53,7 @@ "Sornin", "sqlite", "suprimmees", + "Synthese", "tempplot", "Tete", "thconfig", diff --git a/Scripts/pyThStat/pythStat.py b/Scripts/pyThStat/pythStat.py index 274a418..546aebf 100644 --- a/Scripts/pyThStat/pythStat.py +++ b/Scripts/pyThStat/pythStat.py @@ -1545,6 +1545,29 @@ def calcul_stats(output_file_csv, output_file_md, filename="None"): formatted_row = [str(v) for v in _row] output_file_ligne_md.append("| " + " | ".join(formatted_row) + " |\n") + output_file_ligne_md.append("\n\n--------------\n") + output_file_ligne_md.append( + "### Graphiques\n\n" + f"![Répartition des directions]({output_file_name_rose}.png)\n\n" # type: ignore + f"![Développement par années]({output_file_name_year}.png)\n\n" # type: ignore + f"![Développement cumulé]({output_file_name_year}_Cum.png)\n\n" # type: ignore + f""" +

+Répartition des directions +

+ """ + f""" +

+Développement par années +

+ """ + f""" +

+Développement cumulé +

+ """ + ) + output_file_ligne_md.append("\n\n--------------\n") output_file_ligne_md.extend( @@ -2011,7 +2034,7 @@ def sql_bilan_reseaux(): global error_count global _largeurColTete retour_totaux = [] - retour_entrees = [] + # retour_entrees = [] retour_reseaux = [] retour_visee = [] retour_sans = [] @@ -2976,7 +2999,8 @@ def Rose(graph_name, bins=72): ax.bar(e[:-1], h, align="edge", width=e[1] - e[0]) # Save the rose diagram - plt.savefig(graph_name) + plt.savefig(graph_name + ".pdf") + plt.savefig(graph_name + ".png") # Close the graph plt.close(plt.figure(1)) @@ -3009,7 +3033,8 @@ def Shot_lengths_histogram(graph_name, bins=72, log=None): plt.yscale("log") # save - plt.savefig(graph_name) + plt.savefig(graph_name + ".pdf") + plt.savefig(graph_name + ".png") plt.close(plt.figure(1)) @@ -3152,6 +3177,7 @@ def PlotExploYears(graph_name, rangeyear=[1959, datetime.now().year], systems=No plt.ylabel("Longueur topographiée (m)") # Save the histogram plt.savefig(graph_name + ".pdf") + plt.savefig(graph_name + ".png") plt.close(plt.figure(1)) # plot the cumulative histogram since the first survey @@ -3159,7 +3185,8 @@ def PlotExploYears(graph_name, rangeyear=[1959, datetime.now().year], systems=No plt.xlabel("Année") plt.ylabel("Longueur topographiée cumulée (km)") # Save the cumulative histogram - plt.savefig(graph_name + "Cum.pdf") + plt.savefig(graph_name + "_Cum.pdf") + plt.savefig(graph_name + "_Cum.png") plt.close(plt.figure(1)) @@ -3257,8 +3284,8 @@ if __name__ == "__main__": output_file_name_log = outputfolder + input_file[:-4] + "_log.log" output_file_name = outputfolder + input_file[:-4] + "_stats" - output_file_name_rose = outputfolder + input_file[:-4] + "_rose.pdf" - output_file_name_histo = outputfolder + input_file[:-4] + "_histo.pdf" + output_file_name_rose = outputfolder + input_file[:-4] + "_rose" + output_file_name_histo = outputfolder + input_file[:-4] + "_histo" output_file_name_year = outputfolder + input_file[:-4] + "_year" imported_database = outputfolder + input_file[:-4] + "_stats.db"