IonDetector#
- class pyopenms.IonDetector#
Bases:
MetaInfoInterfaceDescription of a ion detector (part of a MS Instrument)
- __init__() None#
- __init__(arg: pyopenms.IonDetector, /) None
Methods
__init__()acquisitionModeToString(mode)Convert an AcquisitionMode enum to its string representation.
Removes all meta values
Returns the analog-to-digital converter sampling frequency (in Hz)
Returns the acquisition mode
Returns all acquisition mode names known to OpenMS
Returns all detector type names known to OpenMS
getKeys(keys)Fills the given list with all meta value keys
getMetaValue(name)Returns the value corresponding to a string, or DataValue::EMPTY if not found
Returns all meta values as a dictionary of {name: value}
getOrder()Returns the order
Returns the resolution (in ns)
getType()Returns the detector type
Returns if the MetaInfo is empty
Returns a reference to the MetaInfoRegistry
metaValueExists(name)Returns whether an entry with the given name exists
removeMetaValue(name)Removes the DataValue corresponding to name if it exists
setADCSamplingFrequency(ADC_sampling_frequency)Sets the analog-to-digital converter sampling frequency (in Hz)
setAcquisitionMode(acquisition_mode)Sets the acquisition mode
setMetaValue(name, value)Sets the DataValue corresponding to a name
setMetaValues(values)Sets multiple meta values from a dictionary of {name: value}
setOrder(order)Sets the order
setResolution(resolution)Sets the resolution (in ns)
setType(type)Sets the detector type
toAcquisitionMode(name)Convert a string to an AcquisitionMode enum.
toType(name)Convert a string to a Type enum.
typeToString(type)Convert a Type enum to its string representation.
- class AcquisitionMode(*values)#
Bases:
Enum- ACQMODENULL = 0#
- ADC = 2#
- PULSECOUNTING = 1#
- SIZE_OF_ACQUISITIONMODE = 5#
- TDC = 3#
- TRANSIENTRECORDER = 4#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- class Type(*values)#
Bases:
Enum- ARRAYDETECTOR = 12#
- CHANNELELECTRONMULTIPLIER = 8#
- CHANNELTRON = 9#
- CONVERSIONDYNODE = 13#
- CONVERSIONDYNODEELECTRONMULTIPLIER = 5#
- CONVERSIONDYNODEPHOTOMULTIPLIER = 6#
- DALYDETECTOR = 10#
- DYNODE = 14#
- ELECTRONMULTIPLIER = 1#
- ELECTRONMULTIPLIERTUBE = 21#
- FARADAYCUP = 4#
- FOCALPLANEARRAY = 3#
- FOCALPLANECOLLECTOR = 15#
- INDUCTIVEDETECTOR = 20#
- IONTOPHOTONDETECTOR = 16#
- MICROCHANNELPLATEDETECTOR = 11#
- MULTICOLLECTOR = 7#
- PHOTODIODEARRAYDETECTOR = 19#
- PHOTOMULTIPLIER = 2#
- POINTCOLLECTOR = 17#
- POSTACCELERATIONDETECTOR = 18#
- SIZE_OF_TYPE = 22#
- TYPENULL = 0#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- static acquisitionModeToString(mode: pyopenms.IonDetector.AcquisitionMode) str#
Convert an AcquisitionMode enum to its string representation. Throws Exception::InvalidValue if mode is SIZE_OF_ACQUISITIONMODE
- clearMetaInfo() None#
Removes all meta values
- getADCSamplingFrequency() float#
Returns the analog-to-digital converter sampling frequency (in Hz)
- getAcquisitionMode() pyopenms.IonDetector.AcquisitionMode#
Returns the acquisition mode
- static getAllNamesOfAcquisitionMode() list[str]#
Returns all acquisition mode names known to OpenMS
- static getAllNamesOfType() list[str]#
Returns all detector type names known to OpenMS
- getKeys(keys: list) None#
Fills the given list with all meta value keys
- getMetaValue(name: str) None | int | float | str | bytes | list[str] | list[int] | list[float]#
- getMetaValue(name: str, default_value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None | int | float | str | bytes | list[str] | list[int] | list[float]
- getMetaValue(index: int) None | int | float | str | bytes | list[str] | list[int] | list[float]
- getMetaValue(index: int, default_value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None | int | float | str | bytes | list[str] | list[int] | list[float]
Returns the value corresponding to a string, or DataValue::EMPTY if not found
- getMetaValues() dict#
Returns all meta values as a dictionary of {name: value}
- getOrder() int#
Returns the order
- getResolution() float#
Returns the resolution (in ns)
- getType() pyopenms.IonDetector.Type#
Returns the detector type
- isMetaEmpty() bool#
Returns if the MetaInfo is empty
- static metaRegistry() pyopenms.MetaInfoRegistry#
Returns a reference to the MetaInfoRegistry
- metaValueExists(name: str) bool#
- metaValueExists(index: int) bool
Returns whether an entry with the given name exists
- removeMetaValue(name: str) None#
- removeMetaValue(index: int) None
Removes the DataValue corresponding to name if it exists
- setADCSamplingFrequency(ADC_sampling_frequency: float) None#
Sets the analog-to-digital converter sampling frequency (in Hz)
- setAcquisitionMode(acquisition_mode: pyopenms.IonDetector.AcquisitionMode) None#
Sets the acquisition mode
- setMetaValue(name: str, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None#
- setMetaValue(index: int, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None
Sets the DataValue corresponding to a name
- setMetaValues(values: dict) None#
Sets multiple meta values from a dictionary of {name: value}
- setOrder(order: int) None#
Sets the order
- setResolution(resolution: float) None#
Sets the resolution (in ns)
- setType(type: pyopenms.IonDetector.Type) None#
Sets the detector type
- static toAcquisitionMode(name: str) pyopenms.IonDetector.AcquisitionMode#
Convert a string to an AcquisitionMode enum. Throws Exception::InvalidValue if name is not found
- static toType(name: str) pyopenms.IonDetector.Type#
Convert a string to a Type enum. Throws Exception::InvalidValue if name is not found
- static typeToString(type: pyopenms.IonDetector.Type) str#
Convert a Type enum to its string representation. Throws Exception::InvalidValue if type is SIZE_OF_TYPE