Gradient#
- class pyopenms.Gradient#
Bases:
objectRepresentation 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
Removes all eluents
Sets all percentage values to 0
Removes all timepoints
Returns a copy of the list of eluents
getPercentage(eluent, timepoint)Returns a const reference to the percentages
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’