Read-only mirror of https://github.com/BLV-OSAV-USAV/FRESIL-Datenvisualisierung — Federal Food Safety and Veterinary Office FSVO, Switzerland. Issues & pull requests at the source.
  • Jupyter Notebook 94.6%
  • CSS 1.9%
  • JavaScript 1.9%
  • HTML 0.9%
  • Python 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-28 09:22:40 +01:00
archive update 2024-06-03 15:45:09 +02:00
data_prep update data 2024-10-28 08:12:22 +01:00
web-app updatem to fit bigger circles 2024-10-28 09:22:40 +01:00
.gitignore update 2024-06-03 15:45:09 +02:00
environment.yml update 2024-06-05 10:03:16 +02:00
README.md Update README.md 2024-06-03 15:47:04 +02:00

Project explanation

Die «Früherkennung Sicherheit der Lebensmittel» (FRESIL) des BLV hat zum Ziel, potenzielle Gefahren von Lebensmitteln für die Gesundheit der Konsumentinnen und Konsumenten zu identifizieren und zu beurteilen. Dazu werden Informationen aus verschiedenen Quellen ge-sammelt, bewertet und Massnahmen daraus abgeleitet. Diese betreffen in erster Linie das BLV, sind aber auch für die kantonalen Vollzugsbehörden und die Lebensmittelwirtschaft von Nutzen.

Die Früherkennung Sicherheit der Lebensmittel erstellt verschiedene Produkte. Diese umfas-sen Einträge in die Datenbank ADURA, einen Newsletter namens SEISMO-Info, Briefing let-ters, Signale und Berichte. Es ist für Nutzer nicht einfach rasch zu erkennen, welche Themen aus Sicht der Früherkennung jeweils von Bedeutung und ggf. weiter zu verfolgen sind. Details liegen an unterschiedlichen Orten (Datenbank, Newsletter, interne Dokumente) vor; es exis-tiert zurzeit kein Gesamtüberblick.

Vor diesem Hintergrund möchte das BLV ein automatisiertes Dashboard erstellen, das einen Überblick über die Tendenzen und wichtigen Themen im Bereich der Früherkennung gibt und die Visualisierung attraktiver und verständlicher macht. In einem zweiten Schritt soll es auch in die Website integriert werden, um auf neue Publikationen hinzuweisen. All dies wür-de die Transparenz über die Aktivitäten in der Früherkennung erhöhen und damit das Ver-trauen stärken.

Directory Structure

  • assets/: Contains all the js and css scripts needed to run the dashboard

  • data_prep/: Contains all the scripts for data preparation and analysis.

  • csv-files-filtered/: Directory that stores the filtered data generated by the data_prep/data_filt.py script.

  • figure_data/: Directory that contains other statistics files generated from the filtered CSV files using the figure_data.py script. Those files are used for some of the visualization.

  • images/: contains all the static images found in the dashboard

  • archive/: Directory containing early tests for the dashboard

  • archive/python-test/: Directory that includes a test Dash application.

  • archive/d3/: Directory that contains drafts of the visualizations used in the main app.

Running the Application Locally

To run the application on your local machine, follow these steps:

  1. Clone the directory and ensure that you have the initial data stored locally.
  2. Execute the data_prep/data_filt.py script on the initial data to obtain the filtered data.
  3. Run the data_prep/figure_data.py script to generate the statistical files.
  4. Start a local server, for exemple by running the command python -m http.server.
  5. Open your web browser and go to your localhosts server page.
  6. You should now be able to access and use the application.