astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v0.3 »
- N-dimensional datasets (`astropy.nddata`) »
- FlagCollection

# FlagCollection

class `astropy.nddata.flag_collection.``FlagCollection`(*args, **kwargs)

  Bases: `collections.OrderedDict`

  The purpose of this class is to provide a dictionary for containing arrays of flags for the `NDData` class. Flags should be stored in Numpy arrays that have the same dimensions as the parent data, so the `FlagCollection` class adds shape checking to an ordered dictionary class.

  The `FlagCollection` should be initialized like an `OrderedDict`, but with the addition of a `shape=` keyword argument used to pass the NDData shape.