Source code for pygromos.simulations.hpc_queuing.submission_systems

import socket

from pygromos.simulations.hpc_queuing.submission_systems.dummy import DUMMY
from pygromos.simulations.hpc_queuing.submission_systems.local import LOCAL
from pygromos.simulations.hpc_queuing.submission_systems.lsf import LSF


[docs]def get_submission_system(testing: bool = False): if testing: return DUMMY if "eu" in socket.gethostname(): return LSF else: return LOCAL