meld.system.scalers.TimeRampSwitcher

class meld.system.scalers.TimeRampSwitcher(first_ramp, second_ramp, switching_time)[source]

Bases: TimeRamp

Switches between two TimeRamp objects.

Class first_ramp before switching time. At the switching time it switches to second_ramp, which it uses thereafter.

__init__(first_ramp, second_ramp, switching_time)[source]

Initialize a TimeRampSwitcher

Parameters
  • first_ramp (TimeRamp) – active when time < switching_time

  • second_ramp (TimeRamp) – active when time >= switching_time

  • switching_time (float) – when to switch

Methods

__init__(first_ramp, second_ramp, switching_time)

Initialize a TimeRampSwitcher