sas.sascalc package

Subpackages

Submodules

sas.sascalc.util module

class sas.sascalc.util.ExtrapolationInteractionState(extrapolation_parameters: ExtrapolationParameters, working_line_id: int | None = None, dragging_line_position: float | None = None)

Bases: object

Represents the state of the slider used to control extrapolation parameters

Contains extrapolation parameters along with the representation of the hover state.

dragging_line_position: float | None = None
extrapolation_parameters: ExtrapolationParameters
working_line_id: int | None = None
class sas.sascalc.util.ExtrapolationParameters(ex_q_min: float | None, data_q_min: float, point_1: float, point_2: float, point_3: float, data_q_max: float, ex_q_max: float | None)

Bases: NamedTuple

Represents the parameters defining extrapolation

data_q_max: float

Alias for field number 5

data_q_min: float

Alias for field number 1

ex_q_max: float | None

Alias for field number 6

ex_q_min: float | None

Alias for field number 0

point_1: float

Alias for field number 2

point_2: float

Alias for field number 3

point_3: float

Alias for field number 4

class sas.sascalc.util.SettableExtrapolationParameters(point_1: float, point_2: float, point_3: float)

Bases: object

Extrapolation parameters that can be set by the user

point_1: float
point_2: float
point_3: float
sas.sascalc.util.unique_preserve_order(seq: list[Any]) list[Any]

Remove duplicates from list preserving order Fastest according to benchmarks at https://www.peterbe.com/plog/uniqifiers-benchmark

Module contents