ATLAS Offline Software
Classes | Functions | Variables
python.ChapPy Namespace Reference

Classes

class  Athena
 
class  AthenaApp
 AthenaApp. More...
 
class  JobOptions
 
class  JobOptionsCmd
 

Functions

def dump (buf, stdout=sys.stdout)
 
def _make_jobo (job)
 

Variables

string __author__ = "$Author: binet $"
 
string __version__ = "$Revision: 1.3 $"
 

Function Documentation

◆ _make_jobo()

def python.ChapPy._make_jobo (   job)
private

Definition at line 256 of file ChapPy.py.

256 def _make_jobo(job):
257  import tempfile
258  jobo = tempfile.NamedTemporaryFile(suffix='-jobo.py')
259  import textwrap
260  jobo.write(textwrap.dedent(job))
261  jobo.flush()
262  return jobo
263 

◆ dump()

def python.ChapPy.dump (   buf,
  stdout = sys.stdout 
)
Little helper which prints out the content of a file descriptor

Definition at line 25 of file ChapPy.py.

25 def dump( buf, stdout = sys.stdout ):
26  """
27  Little helper which prints out the content of a file descriptor
28  """
29  fname = None
30  if isinstance(buf, str):
31  fname = buf
32  if isinstance(buf, io.IOBase):
33  fname = buf.name
34  with open(fname, 'r') as fd:
35  map(stdout.write, (l for l in fd.readlines()))
36  pass
37  return
38 

Variable Documentation

◆ __author__

string python.ChapPy.__author__ = "$Author: binet $"
private

Definition at line 16 of file ChapPy.py.

◆ __version__

string python.ChapPy.__version__ = "$Revision: 1.3 $"
private

Definition at line 17 of file ChapPy.py.

python.ChapPy._make_jobo
def _make_jobo(job)
Definition: ChapPy.py:256
python.ChapPy.dump
def dump(buf, stdout=sys.stdout)
Definition: ChapPy.py:25
Trk::open
@ open
Definition: BinningType.h:40