# skooter500/dcp25 architecture

> Architecture diagram of the GitHub repository skooter500/dcp25, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/skooter500/dcp25
- Repository: https://github.com/skooter500/dcp25

## Overview

This repository is a collection of TU850 Data Centric Programming course examples, not one integrated application. The main user workflow is to run an individual exercise that loads or creates data, demonstrates a programming or analysis task, and prints, plots, or exports results. The graph highlights the substantial album-analysis and ABC-tune-analysis examples, alongside documented star-map, text-analysis, plotting, and GUI exercises. Evidence is limited to the README and sampled excerpts; unrelated exercises are not connected into a single pipeline.

Main entry points: [`week5/lab_solution_ai.py`](https://github.com/skooter500/dcp25/blob/main/week5/lab_solution_ai.py) (ABC tune analysis), [`rough_work/album_solution.py`](https://github.com/skooter500/dcp25/blob/main/rough_work/album_solution.py) (Album analysis), [`week3/star_map_soln.py`](https://github.com/skooter500/dcp25/blob/main/week3/star_map_soln.py) (Interactive star map), [`week6/shakespere.py`](https://github.com/skooter500/dcp25/blob/main/week6/shakespere.py) (Poem generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data_analysis["Data analysis"]
  node_album_script["Album analysis<br/>[album_solution.py]"]
  node_album_csv["Album CSV files"]
  node_album_merge["Album-track merge<br/>[album_solution.py]"]
  node_abc_script["ABC tune analysis<br/>[lab_solution_ai.py]"]
  node_abc_input["ABC tune file"]
  node_abc_parse["Tune parsing<br/>[lab_solution_ai.py]"]
  node_abc_analyze["Tune analysis<br/>[lab_solution_ai.py]"]
  node_abc_export["Analysis exports<br/>[lab_solution_ai.py]"]
end

subgraph group_visual_apps["Visual applications"]
  node_star_map["Interactive star map<br/>[star_map_soln.py]"]
  node_star_data["Star catalogue"]
  node_plot_example["Pandas plotting<br/>[df_plot.py]"]
  node_tk_table["Tkinter table demo<br/>[database_table.py]"]
end

subgraph group_text_examples["Text examples"]
  node_shakespeare["Poem generator<br/>[shakespere.py]"]
  node_ai_poet["Alternative AI poet<br/>[lok.py]"]
  node_ace_analysis["Screenplay analysis<br/>[ace.py]"]
end

subgraph group_intro_examples["Programming exercises"]
  node_story_exercise["Story generator<br/>[week5.py]"]
  node_py5_sketch["Py5 sketch<br/>[main.py]"]
  node_rainfall["Rainfall exercise<br/>[rainfall.py]"]
end

node_student(("Student"))

node_student -->|"runs exercise"| node_album_script
node_student -->|"runs exercise"| node_abc_script
node_student -->|"runs exercise"| node_star_map
node_student -->|"runs exercise"| node_shakespeare
node_student -->|"runs exercise"| node_ai_poet
node_student -->|"runs exercise"| node_ace_analysis
node_student -->|"runs exercise"| node_story_exercise
node_student -->|"runs exercise"| node_py5_sketch
node_student -->|"runs exercise"| node_rainfall
node_album_script -->|"reads"| node_album_csv
node_album_script -->|"merges data"| node_album_merge
node_abc_script -->|"loads"| node_abc_input
node_abc_script -->|"parses tunes"| node_abc_parse
node_abc_script -->|"analyzes data"| node_abc_analyze
node_abc_script -->|"writes results"| node_abc_export
node_star_map -->|"reads"| node_star_data

click node_album_script "https://github.com/skooter500/dcp25/blob/main/rough_work/album_solution.py"
click node_album_merge "https://github.com/skooter500/dcp25/blob/main/rough_work/album_solution.py"
click node_abc_script "https://github.com/skooter500/dcp25/blob/main/week5/lab_solution_ai.py"
click node_abc_parse "https://github.com/skooter500/dcp25/blob/main/week5/lab_solution_ai.py"
click node_abc_analyze "https://github.com/skooter500/dcp25/blob/main/week5/lab_solution_ai.py"
click node_abc_export "https://github.com/skooter500/dcp25/blob/main/week5/lab_solution_ai.py"
click node_star_map "https://github.com/skooter500/dcp25/blob/main/week3/star_map_soln.py"
click node_plot_example "https://github.com/skooter500/dcp25/blob/main/week11/df_plot.py"
click node_tk_table "https://github.com/skooter500/dcp25/blob/main/week10/database_table.py"
click node_shakespeare "https://github.com/skooter500/dcp25/blob/main/week6/shakespere.py"
click node_ai_poet "https://github.com/skooter500/dcp25/blob/main/lok.py"
click node_ace_analysis "https://github.com/skooter500/dcp25/blob/main/week8/ace.py"
click node_story_exercise "https://github.com/skooter500/dcp25/blob/main/week5/week5.py"
click node_py5_sketch "https://github.com/skooter500/dcp25/blob/main/week1/main.py"
click node_rainfall "https://github.com/skooter500/dcp25/blob/main/week3/rainfall.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_album_script,node_album_csv,node_album_merge,node_abc_script,node_abc_input,node_abc_parse,node_abc_analyze,node_abc_export toneBlue
class node_star_map,node_star_data,node_plot_example,node_tk_table toneAmber
class node_shakespeare,node_ai_poet,node_ace_analysis toneMint
class node_story_exercise,node_py5_sketch,node_rainfall toneRose
class node_student toneIndigo
```

## Components

### Data analysis

- [Album analysis](https://github.com/skooter500/dcp25/blob/main/rough_work/album_solution.py): `rough_work/album_solution.py`
- **Album CSV files**
- [Album-track merge](https://github.com/skooter500/dcp25/blob/main/rough_work/album_solution.py): `rough_work/album_solution.py`
- [ABC tune analysis](https://github.com/skooter500/dcp25/blob/main/week5/lab_solution_ai.py): `week5/lab_solution_ai.py`
- **ABC tune file**
- [Tune parsing](https://github.com/skooter500/dcp25/blob/main/week5/lab_solution_ai.py): `week5/lab_solution_ai.py`
- [Tune analysis](https://github.com/skooter500/dcp25/blob/main/week5/lab_solution_ai.py): `week5/lab_solution_ai.py`
- [Analysis exports](https://github.com/skooter500/dcp25/blob/main/week5/lab_solution_ai.py): `week5/lab_solution_ai.py`

### Visual applications

- [Interactive star map](https://github.com/skooter500/dcp25/blob/main/week3/star_map_soln.py): `week3/star_map_soln.py`
- **Star catalogue**
- [Pandas plotting](https://github.com/skooter500/dcp25/blob/main/week11/df_plot.py): `week11/df_plot.py`
- [Tkinter table demo](https://github.com/skooter500/dcp25/blob/main/week10/database_table.py): `week10/database_table.py`

### Text examples

- [Poem generator](https://github.com/skooter500/dcp25/blob/main/week6/shakespere.py): `week6/shakespere.py`
- [Alternative AI poet](https://github.com/skooter500/dcp25/blob/main/lok.py): `lok.py`
- [Screenplay analysis](https://github.com/skooter500/dcp25/blob/main/week8/ace.py): `week8/ace.py`

### Programming exercises

- [Story generator](https://github.com/skooter500/dcp25/blob/main/week5/week5.py): `week5/week5.py`
- [Py5 sketch](https://github.com/skooter500/dcp25/blob/main/week1/main.py): `week1/main.py`
- [Rainfall exercise](https://github.com/skooter500/dcp25/blob/main/week3/rainfall.py): `week3/rainfall.py`

### Other components

- **Student**

## Connections

- Student → Album analysis: runs exercise
- Student → ABC tune analysis: runs exercise
- Student → Interactive star map: runs exercise
- Student → Poem generator: runs exercise
- Student → Alternative AI poet: runs exercise
- Student → Screenplay analysis: runs exercise
- Student → Story generator: runs exercise
- Student → Py5 sketch: runs exercise
- Student → Rainfall exercise: runs exercise
- Album analysis → Album CSV files: reads (evidence: `rough_work/album_solution.py`)
- Album analysis → Album-track merge: merges data (evidence: `rough_work/album_solution.py`)
- ABC tune analysis → ABC tune file: loads (evidence: `week5/lab_solution_ai.py`)
- ABC tune analysis → Tune parsing: parses tunes (evidence: `week5/lab_solution_ai.py`)
- ABC tune analysis → Tune analysis: analyzes data (evidence: `week5/lab_solution_ai.py`)
- ABC tune analysis → Analysis exports: writes results (evidence: `week5/lab_solution_ai.py`)
- Interactive star map → Star catalogue: reads (evidence: `week3/star_map_soln.py`)
