romtools.workflows.workflow_utils#

Functions

create_empty_dir(dir_name)

Create empty directory

run_model([module, pre_script, executable, ...])

Execute external model

setup_directory(source_dir, target_dir[, ...])

Create new directory and populate with files

romtools.workflows.workflow_utils.create_empty_dir(dir_name)[source]#

Create empty directory

Parameters:

dir_name (str)

romtools.workflows.workflow_utils.run_model(module=None, pre_script=None, executable='bash', num_procs=1, directory='.', **kwargs)[source]#

Execute external model

Parameters:
  • module (str)

  • pre_script (str)

  • executable (str)

  • num_procs (int)

  • directory (str)

romtools.workflows.workflow_utils.setup_directory(source_dir, target_dir, files2link=(), files2copy=())[source]#

Create new directory and populate with files

Parameters:
  • source_dir (str)

  • target_dir (str)

  • files2link (Iterable)

  • files2copy (Iterable)