pcdsutils.ext_scripts.get_run_number

pcdsutils.ext_scripts.get_run_number(hutch: str | None = None, live: bool = False, timeout: float = 1.0)[source]

Call get_lastRun to return the run number of the last daq run.

Parameters:
hutchstr, optional

The name of the hutch to get the run number for. If omitted, the hutch name will be determined automatically via cli argument.

livebool, optional

Defaults to False. If True, we’ll return the number of the current run.

timeoutint or float, optional

Time to wait for get_lastRun to finish. Defaults to a 1 second timeout.

Returns:
run_numberint