Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
-----
This method exists to be monkey patched in vendor libraries to map
shape parameters to actual tip types.
Raises
------
RuntimeError
if there are no tips that support the _shape
See Also
--------
_get_sorted_tip_types : the standard interface for this method
"""
if self._is_single_channel():
tip_types = [
TipType("generic_1_50", Unit("50:ul")),
TipType("generic_1_1000", Unit("1000:ul")),
]
elif self._shape["format"] == "SBS96":
tip_types = [TipType("generic_96_180", Unit("180:ul"))]
elif self._shape["format"] == "SBS384":
tip_types = [TipType("generic_384_30", Unit("30:ul"))]
else:
raise RuntimeError(f"No tip types supported for shape: {self._shape}")
return tip_types
This method exists to be monkey patched in vendor libraries to map
shape parameters to actual tip types.
Raises
------
RuntimeError
if there are no tips that support the _shape
See Also
--------
_get_sorted_tip_types : the standard interface for this method
"""
if self._is_single_channel():
tip_types = [
TipType("generic_1_50", Unit("50:ul")),
TipType("generic_1_1000", Unit("1000:ul")),
]
elif self._shape["format"] == "SBS96":
tip_types = [TipType("generic_96_180", Unit("180:ul"))]
elif self._shape["format"] == "SBS384":
tip_types = [TipType("generic_384_30", Unit("30:ul"))]
else:
raise RuntimeError(f"No tip types supported for shape: {self._shape}")
return tip_types
RuntimeError
if there are no tips that support the _shape
See Also
--------
_get_sorted_tip_types : the standard interface for this method
"""
if self._is_single_channel():
tip_types = [
TipType("generic_1_50", Unit("50:ul")),
TipType("generic_1_1000", Unit("1000:ul")),
]
elif self._shape["format"] == "SBS96":
tip_types = [TipType("generic_96_180", Unit("180:ul"))]
elif self._shape["format"] == "SBS384":
tip_types = [TipType("generic_384_30", Unit("30:ul"))]
else:
raise RuntimeError(f"No tip types supported for shape: {self._shape}")
return tip_types