ATLAS Offline Software
Public Member Functions | List of all members
python.AthOptionsParser.JobOptAction Class Reference
Inheritance diagram for python.AthOptionsParser.JobOptAction:
Collaboration diagram for python.AthOptionsParser.JobOptAction:

Public Member Functions

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

Detailed Description

Check filename extension and fill relevant options

Definition at line 19 of file AthOptionsParser.py.

Member Function Documentation

◆ __call__()

def 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 

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