UseMetric

class rubin_sim.maf.metrics.UseMetric(note_col='note', **kwargs)

Bases: BaseMetric

Metric to classify visits by type of visits

Methods Summary

run(data_slice[, slice_point])

Run the metric.

Methods Documentation

run(data_slice, slice_point=None)

Run the metric.

Parameters:
data_slicenumpy.NDarray

Values passed to metric by the slicer, which the metric will use to calculate metric values at each slice_point.

slice_pointDict

Dictionary of slice_point metadata passed to each metric. E.g. the ra/dec of the healpix pixel or opsim fieldId.

Returns:
str

use at each slice_point.