# semaphorep/codeastro architecture

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

- Interactive diagram: https://gitdiagram.com/semaphorep/codeastro
- Repository: https://github.com/semaphorep/codeastro

## Overview

Code/Astro is a week-long astronomy-programming workshop, not a single runtime application. Its principal learner workflow moves from installation and scientific Python practice to building a package feature, then documenting and presenting a project. The graph preserves the distinct lesson areas visible in the tree, including debugging, parallel computing, documentation, and profiling. Connections between individual lesson materials are limited: the README describes the workshop sequence, but the sampled source does not establish calls between these separate exercises.

Main entry points: [`Day0`](https://github.com/semaphorep/codeastro/tree/main/Day0) (Installation), [`Day1`](https://github.com/semaphorep/codeastro/tree/main/Day1) (Scientific Python), [`Day1/activity_mpl`](https://github.com/semaphorep/codeastro/tree/main/Day1/activity_mpl) (Matplotlib activity), [`Day1/astropy.ipynb`](https://github.com/semaphorep/codeastro/blob/main/Day1/astropy.ipynb) (Astropy lesson)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Preparation"]
  node_installation["Installation"]
end

subgraph group_foundations["Programming Foundations"]
  node_scientific_python["Scientific Python"]
  node_visualization["Matplotlib activity"]
  node_astropy_lesson["Astropy lesson<br/>[astropy.ipynb]"]
  node_git_lesson["Git introduction"]
  node_machine_learning["Machine learning"]
end

subgraph group_practice["Scientific Computing Practice"]
  node_debugging["Debugging"]
  node_parallelism["Parallel computing"]
  node_orbitize_debug["Orbitize edge cases<br/>[broken_orbitize.py]"]
  node_correlation["Correlation package<br/>[correlate.py]"]
end

subgraph group_project["Project Development"]
  node_documentation["Documentation lesson"]
  node_profiling["Performance profiling"]
  node_orbitize_profile["Orbitize profile run"]
  node_final_day["Final-day materials"]
  node_workshop_project["Astronomy package project<br/>[README.md]"]
end

node_learner(("Workshop learner"))

node_learner -->|"prepares with"| node_installation
node_learner -->|"practices with"| node_scientific_python
node_learner -->|"practices with"| node_visualization
node_learner -->|"practices with"| node_astropy_lesson
node_learner -->|"practices with"| node_git_lesson
node_learner -->|"practices with"| node_machine_learning
node_learner -->|"learns debugging"| node_debugging
node_learner -->|"learns parallelism"| node_parallelism
node_learner -->|"debugs edge cases"| node_orbitize_debug
node_learner -->|"studies example"| node_correlation
node_learner -->|"learns documentation"| node_documentation
node_learner -->|"learns profiling"| node_profiling
node_learner -->|"profiles example"| node_orbitize_profile
node_learner -->|"develops project"| node_workshop_project
node_learner -->|"presents project"| node_final_day

click node_installation "https://github.com/semaphorep/codeastro/tree/main/Day0"
click node_scientific_python "https://github.com/semaphorep/codeastro/tree/main/Day1"
click node_visualization "https://github.com/semaphorep/codeastro/tree/main/Day1/activity_mpl"
click node_astropy_lesson "https://github.com/semaphorep/codeastro/blob/main/Day1/astropy.ipynb"
click node_git_lesson "https://github.com/semaphorep/codeastro/tree/main/Day1/git_intro"
click node_machine_learning "https://github.com/semaphorep/codeastro/tree/main/Day1/machine_learning"
click node_debugging "https://github.com/semaphorep/codeastro/tree/main/Day2"
click node_parallelism "https://github.com/semaphorep/codeastro/tree/main/Day2/parallelism"
click node_orbitize_debug "https://github.com/semaphorep/codeastro/blob/main/Day2/broken_orbitize.py"
click node_correlation "https://github.com/semaphorep/codeastro/blob/main/Day3/tutorial_doc/correlate/correlate.py"
click node_documentation "https://github.com/semaphorep/codeastro/tree/main/Day3/tutorial_doc"
click node_profiling "https://github.com/semaphorep/codeastro/tree/main/Day4"
click node_orbitize_profile "https://github.com/semaphorep/codeastro/blob/main/Day4/profile_orbitize.py"
click node_final_day "https://github.com/semaphorep/codeastro/tree/main/Day5"
click node_workshop_project "https://github.com/semaphorep/codeastro/blob/main/README.md"

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_installation toneBlue
class node_scientific_python,node_visualization,node_astropy_lesson,node_git_lesson,node_machine_learning toneAmber
class node_debugging,node_parallelism,node_orbitize_debug,node_correlation toneMint
class node_documentation,node_profiling,node_orbitize_profile,node_final_day,node_workshop_project toneRose
class node_learner toneIndigo
```

## Components

### Preparation

- [Installation](https://github.com/semaphorep/codeastro/tree/main/Day0): `Day0`

### Programming Foundations

- [Scientific Python](https://github.com/semaphorep/codeastro/tree/main/Day1): `Day1`
- [Matplotlib activity](https://github.com/semaphorep/codeastro/tree/main/Day1/activity_mpl): `Day1/activity_mpl`
- [Astropy lesson](https://github.com/semaphorep/codeastro/blob/main/Day1/astropy.ipynb): `Day1/astropy.ipynb`
- [Git introduction](https://github.com/semaphorep/codeastro/tree/main/Day1/git_intro): `Day1/git_intro`
- [Machine learning](https://github.com/semaphorep/codeastro/tree/main/Day1/machine_learning): `Day1/machine_learning`

### Scientific Computing Practice

- [Debugging](https://github.com/semaphorep/codeastro/tree/main/Day2): `Day2`
- [Parallel computing](https://github.com/semaphorep/codeastro/tree/main/Day2/parallelism): `Day2/parallelism`
- [Orbitize edge cases](https://github.com/semaphorep/codeastro/blob/main/Day2/broken_orbitize.py): `Day2/broken_orbitize.py`
- [Correlation package](https://github.com/semaphorep/codeastro/blob/main/Day3/tutorial_doc/correlate/correlate.py): `Day3/tutorial_doc/correlate/correlate.py`

### Project Development

- [Documentation lesson](https://github.com/semaphorep/codeastro/tree/main/Day3/tutorial_doc): `Day3/tutorial_doc`
- [Performance profiling](https://github.com/semaphorep/codeastro/tree/main/Day4): `Day4`
- [Orbitize profile run](https://github.com/semaphorep/codeastro/blob/main/Day4/profile_orbitize.py): `Day4/profile_orbitize.py`
- [Final-day materials](https://github.com/semaphorep/codeastro/tree/main/Day5): `Day5`
- [Astronomy package project](https://github.com/semaphorep/codeastro/blob/main/README.md): `README.md`

### Other components

- **Workshop learner**

## Connections

- Workshop learner → Installation: prepares with (evidence: `README.md`)
- Workshop learner → Scientific Python: practices with (evidence: `README.md`)
- Workshop learner → Matplotlib activity: practices with (evidence: `README.md`)
- Workshop learner → Astropy lesson: practices with (evidence: `README.md`)
- Workshop learner → Git introduction: practices with (evidence: `README.md`)
- Workshop learner → Machine learning: practices with (evidence: `README.md`)
- Workshop learner → Debugging: learns debugging
- Workshop learner → Parallel computing: learns parallelism
- Workshop learner → Orbitize edge cases: debugs edge cases
- Workshop learner → Correlation package: studies example
- Workshop learner → Documentation lesson: learns documentation (evidence: `README.md`)
- Workshop learner → Performance profiling: learns profiling
- Workshop learner → Orbitize profile run: profiles example
- Workshop learner → Astronomy package project: develops project (evidence: `README.md`)
- Workshop learner → Final-day materials: presents project (evidence: `README.md`)
