Instruments Python Module

Instrument model describing data generators.

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

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

static elastic_mapping_builder(obj)

Build the elasticsearch mapping bits.

from_hash(obj)

Convert the hash into the object.

to_hash(**flags)

Convert the object to a hash.

classmethod where_clause(kwargs)

PeeWee specific where clause used for search.