catalight.analysis.tools.get_timepassed
- catalight.analysis.tools.get_timepassed(concentrations, switch_to_hours=2, expt=None)
Convert time stamps to array of cumulative time passed.
- Parameters:
concentrations (numpy.ndarray) – 3D matrix of concentrations for each molecule, gc collection, and condition [Condition x [Timestamps, ChemID] x run number
switch_to_hours (float, optional) – Time in hours when the output should switch units to hours instead of minutes. The default is 2.
- Returns:
numpy.ndarray – Numpy array of cumulative time passed since the start of experiment.
str – Either ‘min’ or ‘hr’ based on the length of total time and parameters.