Instrument Group Python Module

InstrumentGroup links Groups and Instruments and objects.

class pacifica.metadata.orm.instrument_group.InstrumentGroup(*args, **kwargs)[source]

InstrumentGroup attributes are foreign keys.

Attributes:
Name Description
instrument Link to the Instrument model
group Link to the Group model
DoesNotExist

alias of InstrumentGroupDoesNotExist

_meta = <peewee.Metadata object>
_schema = <peewee.SchemaManager object>
created = <ExtendDateTimeField: InstrumentGroup.created>
deleted = <ExtendDateTimeField: InstrumentGroup.deleted>
from_hash(obj)[source]

Convert the hash into the object.

group = <ForeignKeyField: InstrumentGroup.group>
group_id = <ForeignKeyField: InstrumentGroup.group>
instrument = <ForeignKeyField: InstrumentGroup.instrument>
instrument_id = <ForeignKeyField: InstrumentGroup.instrument>
to_hash(**flags)[source]

Convert the object to a hash.

updated = <ExtendDateTimeField: InstrumentGroup.updated>
classmethod where_clause(kwargs)[source]

Where clause for the various elements.