Amount Remaining
In this mode, we can determine the total volume/mass/quantity in a given Container before and after a recipe stage
If material is added during the specified recipe stage, Container Flow Tracking should be used instead
This may be used to track the usage of a mixture, rather than a single substance
Refer to Minimal Recipe document for the recipe being queried in the examples below.
How to use get_amount_remaining()
def get_amount_remaining(container: Container | Plate, timeframe, str='all', unit: str | None = None, mode: str = 'after')
container: The container to querytimeframe: The timeframe from which to get the volumeunit: The unit to return the amount inmode: Whether to query the container before or after the stage
Example calls
How much stock_solution remains after transferring liquids in stage 1?
recipe.get_amount_remaining(container=dest_container, timeframe='stage 1', unit='mL')
The volume of stock_solution at the end of Stage 1 is 40 mL