lsst.afw  21.0.0-25-g1d57be3cd+e73869a214
Classes | Public Member Functions | Static Public Attributes | List of all members
lsst.gdb.afw.printers.GdbOptionParser Class Reference
Inheritance diagram for lsst.gdb.afw.printers.GdbOptionParser:

Classes

class  AxesPrinter
 
class  BackgroundControlPrinter
 
class  BackgroundPrinter
 
class  BaseSourceAttributesPrinter
 
class  Box2Printer
 
class  CoordinateBasePrinter
 
class  DetectorPrinter
 
class  EigenMatrixPrinter
 
class  EigenVectorPrinter
 
class  ExposurePrinter
 
class  FootprintPrinter
 
class  FootprintSetPrinter
 
class  GilPixelPrinter
 
class  ImagePrinter
 
class  KernelPrinter
 
class  MaskedImagePrinter
 
class  PeakPrinter
 
class  PrintEigenCommand
 
class  PrintImageCommand
 
class  PsfPrinter
 
class  QuadrupolePrinter
 
class  SharedPtrPrinter
 
class  SourcePrinter
 
class  StatisticsControlPrinter
 
class  TablePrinter
 
class  TableSchemaPrinter
 

Public Member Functions

def __init__ (self, prog, *args, **kwargs)
 
def parse_args (self, args, values=None)
 
def exit (self, status=0, msg="")
 
def getEigenMatrixDimensions (val)
 
def getEigenValue (var, x, y=0)
 
def register (obj=None)
 
def build_boost_dictionary ()
 
def build_eigen_dictionary ()
 
def build_afw_dictionary ()
 
def build_daf_base_dictionary ()
 

Static Public Attributes

 printers
 

Detailed Description

A subclass of the standard optparse OptionParser for gdb

GdbOptionParser raises GdbError rather than exiting when asked for help, or
when given an illegal value. E.g.

parser = gdb.printing.GdbOptionParser("show image")
parser.add_option("-a", "--all", action="store_true",
              help="Display the whole image")
parser.add_option("-w", "--width", type="int", default=8,
              help="Field width for pixels")

opts, args =  parser.parse_args(args)

Definition at line 15 of file printers.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.gdb.afw.printers.GdbOptionParser.__init__ (   self,
  prog,
args,
**  kwargs 
)
Like optparse.OptionParser's API, but with an initial command name argument

Definition at line 30 of file printers.py.

Member Function Documentation

◆ build_afw_dictionary()

def lsst.gdb.afw.printers.GdbOptionParser.build_afw_dictionary ( )

Definition at line 775 of file printers.py.

◆ build_boost_dictionary()

def lsst.gdb.afw.printers.GdbOptionParser.build_boost_dictionary ( )
Surely this must be somewhere standard?

Definition at line 747 of file printers.py.

◆ build_daf_base_dictionary()

def lsst.gdb.afw.printers.GdbOptionParser.build_daf_base_dictionary ( )

Definition at line 835 of file printers.py.

◆ build_eigen_dictionary()

def lsst.gdb.afw.printers.GdbOptionParser.build_eigen_dictionary ( )
Surely this must be somewhere standard?

Definition at line 761 of file printers.py.

◆ exit()

def lsst.gdb.afw.printers.GdbOptionParser.exit (   self,
  status = 0,
  msg = "" 
)
Raise GdbError rather than exiting

Definition at line 56 of file printers.py.

◆ getEigenMatrixDimensions()

def lsst.gdb.afw.printers.GdbOptionParser.getEigenMatrixDimensions (   val)

Definition at line 91 of file printers.py.

◆ getEigenValue()

def lsst.gdb.afw.printers.GdbOptionParser.getEigenValue (   var,
  x,
  y = 0 
)

Definition at line 109 of file printers.py.

◆ parse_args()

def lsst.gdb.afw.printers.GdbOptionParser.parse_args (   self,
  args,
  values = None 
)
Call OptionParser.parse_args after running gdb.string_to_argv

Definition at line 39 of file printers.py.

◆ register()

def lsst.gdb.afw.printers.GdbOptionParser.register (   obj = None)

Definition at line 738 of file printers.py.

Member Data Documentation

◆ printers

lsst.gdb.afw.printers.GdbOptionParser.printers
static

Definition at line 736 of file printers.py.


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