ATLAS Offline Software
Loading...
Searching...
No Matches
python.AthOptionsParser.JobOptAction Class Reference
Inheritance diagram for python.AthOptionsParser.JobOptAction:
Collaboration diagram for python.AthOptionsParser.JobOptAction:

Public Member Functions

 __call__ (self, parser, args, values, option_string=None)

Public Attributes

 dest

Detailed Description

Check filename extension and fill relevant options

Definition at line 19 of file AthOptionsParser.py.

Member Function Documentation

◆ __call__()

python.AthOptionsParser.JobOptAction.__call__ ( self,
parser,
args,
values,
option_string = None )

Definition at line 21 of file AthOptionsParser.py.

21 def __call__(self, parser, args, values, option_string=None):
22 scripts = [f for f in values if f[-3:] == '.py']
23 pkls = [f for f in values if f[-4:] == '.pkl']
24
25 if (scripts and pkls) or len(pkls)>1:
26 raise ValueError('Only job options or one pickle file is allowed')
27
28 setattr(args, self.dest, scripts)
29 args.fromdb = pkls[0] if pkls else None
30
31

Member Data Documentation

◆ dest

python.AthOptionsParser.JobOptAction.dest

Definition at line 28 of file AthOptionsParser.py.


The documentation for this class was generated from the following file: