How kiyami/sneratio works
SNeRatio is a Python calculator that estimates the relative SNIa and core-collapse supernova contributions to measured elemental abundances. The principal workflow is: configure abundance and model inputs, prepare normalized abundances and model yields, fit the contribution ratio and its uncertainty, then save results and plots. A separate batch workflow evaluates combinations of available yield tables. The sampled source shows the single-fit save-and-plot calls; the README documents the batch workflow and output location. The API excerpt is partial, so uncertain internal wiring is omitted.
Main entry points: sneratio_api.py SNeRatio inputs · main.py Configured run · outputs Output files · data Yield tables
Components 18
Configuration and data
- Configured run
main.py - Print options
sneratio_api.py - Abundance input
data/test_data.txt - Yield tables
data - Solar tables
data/solar - Mass numbers
data/mass_number.txt
Yield preparation
- SNeRatio inputs
sneratio_api.py - Abundance normalization
sneratio_api.py - Integrated yields
sneratio_api.py
Fit analysis
- Single fit API
sneratio_api.py - Batch fit API
sneratio_api.py - SNeStats fitting
sneratio_api.py - Confidence intervals
sneratio_api.py - Model combinations
sneratio_api.py
Results and plots
- Save fit results
sneratio_api.py - Fit plots
sneratio_api.py - Output files
outputs
Other components
- Analyst
Connections 20
- Analyst → Configured run: configures
- Configured run → Print options: calls
- Configured run → Single fit API: calls
- Configured run → Batch fit API: calls
- Single fit API → SNeRatio inputs: initializes
- SNeRatio inputs → Abundance input: reads
- SNeRatio inputs → Solar tables: reads
- SNeRatio inputs → Mass numbers: reads
- SNeRatio inputs → Yield tables: reads
- SNeRatio inputs → Abundance normalization: prepares
- SNeRatio inputs → Integrated yields: calculates
- Single fit API → SNeStats fitting: calls
- SNeStats fitting → Confidence intervals: calculates
- Single fit API → Save fit results: calls
- Single fit API → Fit plots: calls
- Save fit results → Output files: writes
- Fit plots → Output files: writes
- Batch fit API → Yield tables: enumerates
- Batch fit API → Model combinations: evaluates
- Batch fit API → Output files: writes