Survey Instruments
Instrument
dataclass
A class for representing circumplex instruments.
ATTRIBUTE | DESCRIPTION |
---|---|
scales |
Scales
TYPE:
|
anchors |
Anchors
TYPE:
|
details |
InstrumentDetails
TYPE:
|
items |
Items | None = None
TYPE:
|
_data |
pd.DataFrame | None = None
TYPE:
|
from_dict
from_dict(inst_dict)
Compose an Instrument object from a dictionary.
Typically this would be used to load an instrument from one of our built in JSON files. Args: inst_dict: A dictionary containing the instrument's details, scales, anchors, and items.
RETURNS | DESCRIPTION |
---|---|
Instrument
|
An Instrument object.
TYPE:
|
Source code in circumplex/instrument.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
load_instrument
load_instrument(instrument)
Load an instrument from one of our built-in JSON files.
PARAMETER | DESCRIPTION |
---|---|
instrument |
The name of the instrument to load. Must be one of the following: - CSIP
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Instrument
|
An Instrument object.
TYPE:
|
Source code in circumplex/instrument.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|