Container Flow Tracking
In this tracking mode, we track the volume flowing in and out of a given Container during a specific timeframe
This may be used to track the usage of a solution, rather than a single substance
Flow Tracking is most helpful in the case that material is added to the container during the stage being queried
If no material is added to the container during the stage, Amount Remaining can be used to track usage of a solution
Timeframes are specified using recipe stages as in substance-level tracking
Refer to Minimal Recipe document for the recipe being queried in the examples below.
How to use get_container_flows()
def get_container_flows(container: Container | Plate, timeframe: str = 'all', unit='uL': str | None = None)
container: The container to get flows fortimeframe: The timeframe over which the deltas of the destinations should be comparedunit: The unit to return flows in
Example calls
What are the flows for
stock_solutionacross the entire recipe?
>>> recipe.get_container_flows(container=stock_solution, timeframe='all', unit='mL')
{"in": 50, "out": 10}
We take the difference of the flows of stock_solution at the
beginning and end of the recipe and return the dictionary. The
difference of the outflows is 10 mL and the difference of the
inflows is 50 mL.
This returns: {"in": 50, "out": 10}
What are the flows for
dest_containeracrossStage 2?
recipe.get_container_flows(container=dest_container, timeframe='stage 2', unit='mL')
We take the difference of the flows of
dest_containerat the beginning and end of the recipe and return the dictionary. The difference of the outflows is9.279 mLand the difference of the inflows is0 mL.
Recipe Walkthrough
Start of Recipe:
container: {in: "0 mL", out: "0 mL"}
stock_solution: {in: "0 mL", out: "0 mL"}
Stage 1 (start):
Flows of containers at the start of Stage 1:
dest_container: {in: "0 mL", out: "0 mL"}
stock_solution: {in: "50 mL", out: "0 mL"}
Stage 1 (end):
Contents of containers at the end of Stage 1:
dest_container: {in: "10 mL", out: "0 mL"}
stock_solution: {in: "50 mL", out: "10 mL"}
Stage 2 (start):
Contents of containers at the beginning of Stage 2:
dest_container: {in: "10 mL", out: "0 mL"}
stock_solution: {in: "50 mL", out: "10 mL"}
Stage 2 (end):
Contents of containers at the end of Stage 2:
dest_container: {in: "10 mL", out: "9.2779 mL"}
stock_solution: {in: "50 mL", out: "10 mL"}