Survey Instruments
Instrument
dataclass
Instrument(scales, anchors, details, norms=None, _data=None)
A class for representing circumplex instruments.
ATTRIBUTE | DESCRIPTION |
---|---|
scales |
Scales
TYPE:
|
anchors |
Anchors
TYPE:
|
details |
InstrumentDetails
TYPE:
|
inst_items |
Items | None = None
|
_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
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
instruments
instruments()
Print a list of the instruments included in the circumplex package.
RETURNS | DESCRIPTION |
---|---|
None
|
None |
Source code in circumplex/instrument.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
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
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|