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

Method add_header_line

python/lbann/launcher/batch_script.py:52–59  ·  view source on GitHub ↗

Add line to script header. The header should specify configuration options for the job scheduler, without containing executable commands.

(self, line)

Source from the content-addressed store, hash-verified

50 self.add_header_line('#!{}'.format(interpreter))
51
52 def add_header_line(self, line):
53 """Add line to script header.
54
55 The header should specify configuration options for the job
56 scheduler, without containing executable commands.
57
58 """
59 self.header.append(line)
60
61 def add_body_line(self, line):
62 """Add line to script body.

Callers 5

__init__Method · 0.95
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected