Defines the individual data processing nodes used to construct complete data analysis pipelines.
Note
Nodes are built on the egon
framework. For more information see the
official Egon Documentation.
Pipeline node for loading PLAsTICC cadence data from disk
output: Emits a pipeline packet decorated with the snid, simulation parameters, and cadence
Source node for loading PLAsTICC cadence data from disk
This node can only be run using a single process. This can be the main
process (num_processes=0
) or a single forked process (num_processes=1
.)
plasticc_dao (PLAsTICC
) – A PLAsTICC data access object
iter_lim (int
) – Exit after loading the given number of light-curves
override_zp (float
) – Overwrite the zero-point used by plasticc with this number
verbose (bool
) – Display a progress bar
num_processes (int
) – Number of processes to allocate to the node (must be 0 or 1 for this node)
Pipeline node for simulating light-curves based on PLAsTICC cadences
input: A Pipeline Packet success_output: Emits pipeline packets successfully decorated with a simulated light-curve failure_output: Emits pipeline packets for cases where the simulation procedure failed
Fit light-curves using multiple processes and combine results into an output file
sn_model (SNModel
) – Model to use when simulating light-curves
catalog (Optional
[VariableCatalog
]) – Optional reference start catalog to calibrate simulated flux values to
num_processes (int
) – Number of processes to allocate to the node
abs_mb (float
) – The absolute B-band magnitude of the simulated SNe
cosmo (Cosmology
) – Cosmology to assume in the simulation
Duplicate a plastic light-curve using the simulation model
params (Dict
[str
, float
]) – The simulation parameters to use with self.model
cadence (ObservedCadence
) – The observed cadence of the returned light-curve
Tuple
[LightCurve
, SNModel
]
Pipeline node for fitting simulated light-curves
input: A Pipeline Packet success_output: Emits pipeline packets with successful fit results failure_output: Emits pipeline packets for cases where the fitting procedure failed
Fit light-curves using multiple processes and combine results into an output file
sn_model (SNModel
) – Model to use when fitting light-curves
vparams (List
[str
]) – List of parameter names to vary in the fit
bounds (Optional
[Dict
]) – Bounds to impose on fit_model
parameters when fitting light-curves
num_processes (int
) – Number of processes to allocate to the node
Fit the given light-curve
light_curve (LightCurve
) – The light-curve to fit
initial_guess (Dict
[str
, float
]) – Parameters to use as the initial guess in the chi-squared minimization
The optimization result
A copy of the model with parameter values set to minimize the chi-square
Pipeline node for writing pipeline packets to disk
input: A pipeline packet
Output node for writing HDF5 data to disk
This node can only be run using a single process.
out_path (Union
[str
, Path
]) – Path to write data to in HDF5 format
write_lc_sims (bool
) – Whether to include simulated light-curves in the data written to disk