Instruments Python Module

Instrument model describing data generators.

class pacifica.metadata.orm.instruments.Instruments(*args, **kwargs)[source]

Instrument and associated fields.

Attributes:
Name Description
display_name Long display string for web sites
name Machine parsable display name
name_short Short version used in lists
active whether the instrument is active
encoding encoding for the various name attrs
DoesNotExist

alias of InstrumentsDoesNotExist

_meta = <peewee.Metadata object>
_schema = <peewee.SchemaManager object>
active = <BooleanField: Instruments.active>
created = <ExtendDateTimeField: Instruments.created>
custodians
data_sources
deleted = <ExtendDateTimeField: Instruments.deleted>
display_name = <CharField: Instruments.display_name>
encoding = <CharField: Instruments.encoding>
from_hash(obj)[source]

Convert the hash into the object.

groups
id = <AutoField: Instruments.id>
metadata
name = <CharField: Instruments.name>
name_short = <CharField: Instruments.name_short>
projects
to_hash(**flags)[source]

Convert the object to a hash.

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

PeeWee specific where clause used for search.