waveform_editor.tendencies.import_tendency.ImportTendency¶
- class waveform_editor.tendencies.import_tendency.ImportTendency(**kwargs)¶
Bases:
BaseTendencyA waveform segment whose values are imported from an external entry.
Instead of an analytic shape, the values are read from a named entry in
globals.imports. By default the same DD path the segment sits at is read (default_path, set by the parent waveform);pathoverrides it andtime_offsetshifts the sampling time.interpselects the resampling mode (closest/linear/previous) used when sampling onto the export time base.For a 0D (scalar) quantity an import may be one segment among analytic ones, each filling its
[start, end]window, so this is a real tendency. Non-0D quantities and wildcard paths instead use anImportWaveform.Values come from an
ImportResolverbound by the parent waveform:get_value(time)returns values resampled ontotime(export);get_value()returns the raw source samples (editing/plotting), clipped to this segment's window only when one was given.- __init__(**kwargs)¶
Methods
__init__(**kwargs)get_derivative(time)Get the values of the derivatives at the provided time array.
get_value([time])Get the tendency values at the provided time array.
set_next_tendency(next_tendency)Sets the next tendency as a param.
set_previous_tendency(prev_tendency)Sets the previous tendency as a param.
Attributes
allow_zero_durationannotationsdefault_pathdurationendend_derivativeend_valueis_first_repeatedline_numbernamenext_tendencyparamprev_tendencyresolverstartstart_derivativestart_valuestart_value_settimes_changeduser_durationuser_enduser_interpuser_pathuser_refuser_startuser_time_offsetvalues_changed- get_derivative(time: ndarray) ndarray¶
Get the values of the derivatives at the provided time array.
- set_next_tendency(next_tendency)¶
Sets the next tendency as a param.
- Parameters:
- next_tendency¶
The tendency follows the current tendency.
- set_previous_tendency(prev_tendency)¶
Sets the previous tendency as a param.
- Parameters:
- prev_tendency¶
The tendency precedes the current tendency.