FilterDefinitionCollection

class lsst.obs.base.FilterDefinitionCollection(*filters: FilterDefinition)

Bases: Sequence[FilterDefinition]

An order-preserving collection of multiple FilterDefinition.

Parameters:
filtersSequence

The filters in this collection.

Methods Summary

count(value)

findAll(name)

Return the FilterDefinitions that match a particular name.

index(value, [start, [stop]])

Raises ValueError if the value is not present.

Methods Documentation

count(value) integer -- return number of occurrences of value
findAll(name: str) Set[FilterDefinition]

Return the FilterDefinitions that match a particular name.

This method makes no attempt to prioritize, e.g., band names over physical filter names; any definition that makes any reference to the name is returned.

Parameters:
namestr

The name to search for. May be any band, physical, or alias name.

Returns:
matchesset [FilterDefinition]

All FilterDefinitions containing name as one of their filter names.

index(value[, start[, stop]]) integer -- return first index of value.

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.