Gradient#

class pyopenms.Gradient#

Bases: object

Representation of a HPLC gradient

__init__() → None#
__init__(arg: pyopenms.Gradient, /) → None

Methods

__init__()

addEluent(eluent)

Adds an eluent at the end of the eluent array

addTimepoint(timepoint)

Adds a timepoint at the end of the timepoint array

clearEluents()

Removes all eluents

clearPercentages()

Sets all percentage values to 0

clearTimepoints()

Removes all timepoints

getEluents()

Returns a copy of the list of eluents

getPercentage(eluent, timepoint)

Returns a const reference to the percentages

getTimepoints()

Returns a copy of the list of timepoints

isValid()

Checks if the percentages of all timepoints add up to 100%

setPercentage(eluent, timepoint, percentage)

Sets the percentage of 'eluent' at 'timepoint'

addEluent(eluent: str) → None#

Adds an eluent at the end of the eluent array

addTimepoint(timepoint: int) → None#

Adds a timepoint at the end of the timepoint array

clearEluents() → None#

Removes all eluents

clearPercentages() → None#

Sets all percentage values to 0

clearTimepoints() → None#

Removes all timepoints

getEluents() → list[str]#

Returns a copy of the list of eluents

getPercentage(eluent: str, timepoint: int) → int#

Returns a const reference to the percentages

getTimepoints() → list[int]#

Returns a copy of the list of timepoints

isValid() → bool#

Checks if the percentages of all timepoints add up to 100%

setPercentage(eluent: str, timepoint: int, percentage: int) → None#

Sets the percentage of ‘eluent’ at ‘timepoint’