romtools.hpc.dispatchers.local_dispatcher#

Classes

LocalDispatcher([sampling_directory, logger])

LocalDispatcher is a subclass of BaseDispatcher that implements the core functionality for dispatching ROM workflows on the local machine.

class romtools.hpc.dispatchers.local_dispatcher.LocalDispatcher(sampling_directory='hpctools', logger=None)[source]#

Bases: BaseDispatcher

LocalDispatcher is a subclass of BaseDispatcher that implements the core functionality for dispatching ROM workflows on the local machine. It overrides methods to set up directories and execute commands without SSH, making it suitable for local execution.

Parameters:
  • sampling_directory (str)

  • logger (Logger)

dispatch(cmd, run_directory=None)[source]#
Returns:

sacct format string of job exit code + linux signal number (always 0 in local) example: ‘0:0’

Parameters:
  • cmd (str)

  • run_directory (str)

Return type:

Result

get(remote_path, local_path)[source]#

Local ‘get’ is just a copy from remote_path to local_path.

Parameters:
  • remote_path (str)

  • local_path (str)

Return type:

None

np_savez(path, **arrays)[source]#

Write multiple arrays to a .npz file. The .npz file is written directly to the specified path.

Parameters:

path (str)

Return type:

None

put(local_path, remote_path)[source]#

Local ‘put’ is just a copy from local_path to remote_path.

Parameters:
  • local_path (str)

  • remote_path (str)

Return type:

None