MCPcopy Create free account
hub / github.com/LBANN/lbann / add_command

Method add_command

python/lbann/launcher/batch_script.py:69–77  ·  view source on GitHub ↗

Add executable command to script. Args: command (`str` or `Iterable` of `str`s): Program invocation or sequence of program arguments.

(self, command)

Source from the content-addressed store, hash-verified

67 self.body.append(line)
68
69 def add_command(self, command):
70 """Add executable command to script.
71
72 Args:
73 command (`str` or `Iterable` of `str`s): Program
74 invocation or sequence of program arguments.
75
76 """
77 self.add_body_line(' '.join(make_iterable(command)))
78
79 def add_parallel_command(self,
80 command,

Callers 9

runFunction · 0.80
add_parallel_commandMethod · 0.80
add_parallel_commandMethod · 0.80
add_parallel_commandMethod · 0.80
add_parallel_commandMethod · 0.80
runFunction · 0.80
make_batch_scriptFunction · 0.80
add_parallel_commandMethod · 0.80
make_batch_scriptFunction · 0.80

Calls 2

add_body_lineMethod · 0.95
make_iterableFunction · 0.90

Tested by

no test coverage detected