How davkat1/greenlight works
GreenLight is a Python platform for building and running dynamic greenhouse and crop models. The main workflow is to provide model definitions and input data, load and format them, solve the resulting model, and save simulation outputs. Users can also convert EnergyPlus weather data and use built-in model definitions. The graph includes the documented analysis scripts as a separate branch. Relationships reflect the README and shown source references; unsampled implementation details are not inferred.
Main entry points: greenlight/core.py GreenLight API · _load/core.py Model loading · main.py Package entry · _solve/core.py Solve orchestration
Components 23
User entry
- Interactive GUI
greenlight/_user_interface.py - Package entry
greenlight/main.py - GreenLight API
greenlight/core.py
Model inputs
- Model definitions
greenlight/models - Simulation inputs
greenlight/models - Model state
greenlight/_greenlight_internal.py - Model loading
greenlight/_load/core.py - Expression parsing
greenlight/_load/_parse_model.py - Function expansion
greenlight/_load/_expand_functions.py - Load utilities
greenlight/_load/_utils.py
Simulation runtime
- Solve orchestration
greenlight/_solve/core.py - IVP solver
greenlight/_solve/_solve_ivp.py - String solver
greenlight/_solve/_solve_ivp_from_str.py - Solver interface
greenlight/_solve/_solver.py - Simulation results
greenlight/_greenlight_internal.py - Output saving
greenlight/_save/core.py - CSV and logs
Weather conversion
- EnergyPlus conversion
greenlight/energy_plus.py
Analysis tools
- Analysis functions
scripts/katzin_2020/_katzin_2020_analysis_functions.py - Figure generation
scripts/katzin_2020/_katzin_2020_generate_figures.py - Table generation
scripts/katzin_2020/_katzin_2020_generate_tables.py - Output analysis
scripts/analyze_output.py
Other components
- Python user
Connections 30
- Python user → GreenLight API: uses
README.md - Python user → Package entry: starts
README.md - Package entry → Interactive GUI: opens
greenlight/main.py - Package entry → GreenLight API: runs
greenlight/main.py - Package entry → EnergyPlus conversion: converts weather
greenlight/main.py - Model definitions → Model loading: provides definitions
README.md - Simulation inputs → Model loading: provides inputs
README.md - GreenLight API → Model state: maintains model
greenlight/core.py - GreenLight API → Model loading: loads model
greenlight/core.py - GreenLight API → Solve orchestration: solves model
greenlight/core.py - GreenLight API → Output saving: saves results
greenlight/core.py - Model loading → Model state: updates state
greenlight/_load/core.py - Model loading → Expression parsing: parses definitions
greenlight/_load/core.py - Model loading → Load utilities: uses utilities
greenlight/_load/core.py - Expression parsing → Function expansion: expands functions
greenlight/_load/_parse_model.py - Expression parsing → Load utilities: uses utilities
greenlight/_load/_parse_model.py - EnergyPlus conversion → Simulation inputs: writes converted data
- Solve orchestration → IVP solver: dispatches
greenlight/_solve/core.py - Solve orchestration → String solver: dispatches
greenlight/_solve/core.py - IVP solver → Model state: reads and updates
greenlight/_solve/_solve_ivp.py - String solver → Model state: reads and updates
greenlight/_solve/_solve_ivp_from_str.py - IVP solver → Solver interface: uses interface
greenlight/_solve/_solve_ivp.py - String solver → Solver interface: uses interface
greenlight/_solve/_solve_ivp_from_str.py - Solve orchestration → Simulation results: computes results
greenlight/_solve/core.py - Output saving → Simulation results: reads results
greenlight/_save/core.py - Output saving → CSV and logs: writes files
greenlight/_save/core.py - Table generation → Analysis functions: uses functions
scripts/katzin_2020/_katzin_2020_generate_tables.py - Output analysis → Figure generation: generates figures
scripts/katzin_2020/katzin_2020_generate_output.py - Output analysis → Table generation: generates tables
scripts/katzin_2020/katzin_2020_generate_output.py - Output analysis → CSV and logs: analyzes output