ColRegistry¶
- class rubin_sim.maf.metrics.ColRegistry¶
Bases:
object
ColRegistry tracks the columns needed for all metric objects (kept internally in a set).
ColRegistry.col_set : a set of all unique columns required for metrics. ColRegistry.dbCols : the subset of these which come from the database. ColRegistry.stackerCols : the dictionary of [columns: stacker class].
Attributes Summary
Methods Summary
add_cols
(col_array)Add the columns in ColArray into the ColRegistry.
Clear the registry
Attributes Documentation
- col_info = <rubin_sim.maf.stackers.get_col_info.ColInfo object>¶
Methods Documentation
- add_cols(col_array)¶
Add the columns in ColArray into the ColRegistry.
- Add the columns in col_array into the ColRegistry set (self.col_set) and identifies their source,
using ColInfo (rubin_sim.maf.stackers.getColInfo).
- Parameters:
- col_arraylist
list of columns used in a metric.
- clear_reg()¶
Clear the registry