Promotion / feat(config): Vereinheitlichung aller Export- und Theme-Konfigurationen

- Refaktorierung aller Konfigurationsdateien (config_korrelation.py, config_netzwerk.py, config_deskriptive_literaturauswahl.py) zur einheitlichen Steuerung von Visualisierungs- und PNG-Export über zentrale Schalter:
    - export_fig_visual
    - export_fig_png
    - Einzel-Flags pro Plot als Ableitung des zentralen Schalters
- Integration der CI-konformen Templatefunktionen (get_standard_layout, get_colors, get_plot_styles) in alle Analyse-Skripte
- Standardisierte Exportlogik mittels `export_figure(...)` aus plotly_template, inkl. PNG-Support
- Titelergänzung mit Quelle (BibTeX-Dateiname), dynamischem Datum und Fallzahl
- Konsequent responsive Darstellung aller Visualisierungen

📁 Neue Datei:
- deskriptive-literaturauswahl.py: Ergänzung einer eigenständigen Analyse für deskriptive SC-Zeitreihenvisualisierung, basierend auf winsorisiertem Median, Quartilen und Bias-Schwellenwerten.

🔧 Hinweis:
- Die Exportdateien (HTML/PNG) sind CI-konform benannt und versionierbar
This commit is contained in:
2025-07-29 13:10:53 +02:00
parent 94d9f84991
commit f86cc4f898
4 changed files with 124 additions and 32 deletions

View File

@ -1,6 +1,8 @@
from config_netzwerk import theme, export_fig_visual, bib_filename
from ci_template.plotly_template import export_figure
import os
# Clear the terminal
@ -61,20 +63,8 @@ from config_netzwerk import (
export_fig_visualize_languages,
)
# Zentrale Exportfunktion für Visualisierungen
def export_figure(fig, name, flag, bib_filename=None):
if flag:
export_path = prepare_figure_export(fig, name)
fig.write_html(export_path, full_html=True, include_plotlyjs="cdn")
remote_path = "jochen-hanisch@sternenflottenakademie.local:/mnt/deep-space-nine/public/plot/promotion/"
try:
subprocess.run(["scp", export_path, remote_path], check=True, capture_output=True, text=True)
print(f"✅ Datei '{export_path}' erfolgreich übertragen.")
os.remove(export_path)
print(f"🗑️ Lokale Datei '{export_path}' wurde gelöscht.")
except subprocess.CalledProcessError as e:
print("❌ Fehler beim Übertragen:")
print(e.stderr)
export_figure(fig, name, flag, export_fig_png)
from ci_template.plotly_template import get_colors, get_plot_styles, get_standard_layout