xfel_calibrate¶
-
xfel_calibrate.calibrate.
balance_sequences
(in_folder: str, run: int, sequences: List[int], sequences_per_node: int, karabo_da: Union[list, str], max_nodes: int = 8)[source]¶ Return balance list of sequences to be executed on slurm nodes Total list of sequences is splitted onto several nodes based on sequences_per_node. If the number of the required nodes is more than the max_nodes, the number of sequences_per_node is adjusted.
Parameters: - in_folder – Path to the input raw data without the run number.
- run – Run number.
- sequences – List of sequences. [-1] for obtaining all.
- sequences_per_node – Number of sequences to process per a node.
- karabo_da – Karabo data aggregator used as data file inset.
- max_nodes – Maximum number of maxwell nodes to use.
Returns: Balanced list of sequences.