ctapipe is not stable yet, so expect large and rapid changes to structure and functionality as we explore various design choices before the 1.0 release.

Reference#

class ctapipe.io.metadata.Reference(**kwargs: Any)[source]#

Bases: HasTraits

All the reference Metadata required for a CTA output file, plus a way to turn it into a dict() for easy addition to the header of a file

Attributes Summary

activity

A trait whose value must be an instance of a specified class.

contact

A trait whose value must be an instance of a specified class.

instrument

A trait whose value must be an instance of a specified class.

process

A trait whose value must be an instance of a specified class.

product

A trait whose value must be an instance of a specified class.

Methods Summary

from_dict(metadata)

to_dict([fits])

convert Reference metadata to a flat dict.

Attributes Documentation

activity#

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

contact#

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

instrument#

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

process#

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

product#

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

Methods Documentation

classmethod from_dict(metadata)[source]#
to_dict(fits=False)[source]#

convert Reference metadata to a flat dict.

If fits=True, this will include the HIERARCH keyword in front.