apps.crc_interactive ============================== .. autoapi-nested-parse:: A simple wrapper around the Slurm `srun` command. The application launches users into an interactive Slurm session on a user-selected cluster and (if specified) partition. Dedicated command line options for selecting specific clusters. Each cluster is provided with predefined command line options. As a result, this application does support dynamic cluster discovery. New clusters need to be manually added (or removed) by updating the application CLI arguments. Module Contents --------------- .. py:class:: CrcInteractive Bases: :py:obj:`apps.utils.cli.BaseParser` Launch an interactive Slurm session. .. py:attribute:: min_mpi_nodes :value: 2 .. py:attribute:: min_mpi_cores .. py:attribute:: min_time :value: 1 .. py:attribute:: max_time :value: 12 .. py:attribute:: default_time .. py:attribute:: default_nodes :value: 1 .. py:attribute:: default_cores :value: 1 .. py:attribute:: default_mpi_cores :value: 28 .. py:attribute:: default_mem :value: 1 .. py:attribute:: default_gpus :value: 0 .. py:attribute:: clusters .. py:method:: parse_time(time_str: str) -> datetime.time :staticmethod: Parse a string representation of time in 'HH:MM:SS' format and return a time object. :param time_str: A string representing time in 'HH:MM:SS' format. :returns: A time object representing the parsed time. :rtype: time :raises ArgumentTypeError: If the input string is not in the correct format or cannot be parsed. .. py:method:: parse_args(args=None, namespace=None) -> argparse.Namespace Parse command line arguments. .. py:method:: create_srun_command(args: argparse.Namespace) -> str Create an `srun` command based on parsed command line arguments. :param args: A dictionary of parsed command line parsed_args. :returns: The equivalent `srun` command as a string. .. py:method:: app_logic(args: argparse.Namespace) -> None Logic to evaluate when executing the application. :param args: Parsed command line arguments.