waveform_editor.tendencies.import_tendency.ImportTendency

class waveform_editor.tendencies.import_tendency.ImportTendency(**kwargs)

Bases: BaseTendency

A 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); path overrides it and time_offset shifts the sampling time. interp selects 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 an ImportWaveform.

Values come from an ImportResolver bound by the parent waveform: get_value(time) returns values resampled onto time (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_duration

annotations

default_path

duration

end

end_derivative

end_value

is_first_repeated

line_number

name

next_tendency

param

prev_tendency

resolver

start

start_derivative

start_value

start_value_set

times_changed

user_duration

user_end

user_interp

user_path

user_ref

user_start

user_time_offset

values_changed

get_derivative(time: ndarray) ndarray

Get the values of the derivatives at the provided time array.

get_value(time: ndarray | None = None)

Get the tendency values 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.


Last update: 2026-07-16