BMS.Labware_Content Class¶
The BMS.Labware_Content class is used as container for storing information about the content of a labware well.
Creating the Labware_Content¶
First, the BMS generic tools module is imported as BMS
In [1]:
Copied!
import BiomationScripter as BMS
import BiomationScripter as BMS
Next, the initial information is defined
In [2]:
Copied!
Name = "Liquid1"
Volume = 10 # uL
Liquid_Class = "AQ_BP"
Name = "Liquid1"
Volume = 10 # uL
Liquid_Class = "AQ_BP"
Then, the Labware_Content object can be created
In [3]:
Copied!
Content1 = BMS.Labware_Content(
Name = Name,
Volume = Volume,
Liquid_Class = Liquid_Class
)
Content1 = BMS.Labware_Content(
Name = Name,
Volume = Volume,
Liquid_Class = Liquid_Class
)
Information is retrieved using the get_info method
In [4]:
Copied!
Content1.get_info()
Content1.get_info()
Out[4]:
['Liquid1', 10, 'AQ_BP']
The Liquid_Class argument is optional and defaults to None
In [5]:
Copied!
Content2 = BMS.Labware_Content(
Name = Name,
Volume = Volume
)
Content2.get_info()
Content2 = BMS.Labware_Content(
Name = Name,
Volume = Volume
)
Content2.get_info()
Out[5]:
['Liquid1', 10, None]
Labware_Content objects are also created by Labware_Layout objects when Labware_Layout.add_content is called. See the code snippets here for more information.