Modifiers
Apply Strain
- class crappy.modifier.apply_strain_img.Apply_strain_img(img, exx_label: str = 'Exx(%)', eyy_label: str = 'Eyy(%)', img_label: str = 'frame')[source]
This modifier reads the strain values along X and Y (in %) and creates an image deformed to match these values.
Modifier
Demux
- class crappy.modifier.demux.Demux(*labels: Union[str, list], stream: str = 'stream', mean: bool = False, time_label: str = 't(s)', transpose: bool = False)[source]
Modifier to change a stream table into a
dict
with values (to plot streams).This modifier turns the array returned by a streaming device into a
dict
with individual values (but only one per table). This allows attaching graphers to HF acquisition devices.Note
The table will be lost in the process.
- __init__(*labels: Union[str, list], stream: str = 'stream', mean: bool = False, time_label: str = 't(s)', transpose: bool = False) None [source]
Sets the instance attributes.
- Parameters
*labels (
str
,list
) – The names of the labels to use for each column of the array. May be either a list of labels, or the labels given as separate arguments.stream (
str
, optional) – The name of the label containing the stream.mean (
bool
, optional) – IfTrue
, the returned value will be the average of the column.time_label (
str
, optional) – The name of the label of the time table.transpose (
bool
, optional) –
Differentiate
Integrate
Mean
Median
Moving average
More documentation coming soon !
Moving med
More documentation coming soon !