LSST Applications g034a557a3c+dd8dd8f11d,g0afe43252f+b86e4b8053,g11f7dcd041+017865fdd3,g1cd03abf6b+8446defddb,g1ce3e0751c+f991eae79d,g28da252d5a+ca8a1a9fb3,g2bbee38e9b+b6588ad223,g2bc492864f+b6588ad223,g2cdde0e794+8523d0dbb4,g347aa1857d+b6588ad223,g35bb328faa+b86e4b8053,g3a166c0a6a+b6588ad223,g461a3dce89+b86e4b8053,g52b1c1532d+b86e4b8053,g7f3b0d46df+ad13c1b82d,g80478fca09+f29c5d6c70,g858d7b2824+293f439f82,g8cd86fa7b1+af721d2595,g965a9036f2+293f439f82,g979bb04a14+51ed57f74c,g9ddcbc5298+f24b38b85a,gae0086650b+b86e4b8053,gbb886bcc26+b97e247655,gc28159a63d+b6588ad223,gc30aee3386+a2f0f6cab9,gcaf7e4fdec+293f439f82,gcd45df26be+293f439f82,gcdd4ae20e8+70b5def7e6,gce08ada175+da9c58a417,gcf0d15dbbd+70b5def7e6,gdaeeff99f8+006e14e809,gdbce86181e+6a170ce272,ge3d4d395c2+224150c836,ge5f7162a3a+bb2241c923,ge6cb8fbbf7+d119aed356,ge79ae78c31+b6588ad223,gf048a9a2f4+40ffced2b8,gf0baf85859+b4cca3d10f,w.2024.30
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter Class Reference
Inheritance diagram for lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter:
lsst.gdb.afw.printers.GdbOptionParser.ExposurePrinter lsst.gdb.afw.printers.GdbOptionParser.MaskedImagePrinter

Public Member Functions

 dimenStr (self, val=None)
 
 typeName (self)
 
 __init__ (self, val)
 
 to_string (self)
 

Public Attributes

 typename
 
 val
 

Detailed Description

Definition at line 462 of file printers.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.__init__ ( self,
val )

Definition at line 488 of file printers.py.

488 def __init__(self, val):
489 self.typename = str(val.type)
490 self.val = val
491

Member Function Documentation

◆ dimenStr()

lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.dimenStr ( self,
val = None )

Definition at line 465 of file printers.py.

465 def dimenStr(self, val=None):
466 if val is None:
467 val = self.val
468
469 # Make sure &foo works, too.
470 type = val.type
471 if type.code == gdb.TYPE_CODE_REF:
472 type = type.target()
473
474 gilView = val["_gilView"]
475 arr = val["_origin"]["_vector"]["m_storage"]["m_data"]["array"]
476
477 x0, y0 = arr[0], arr[1]
478 return "%dx%d%s%d%s%d" % (
479 # val["getWidth"](), val["getHeight"](),
480 gilView["_dimensions"]["x"], gilView["_dimensions"]["y"],
481 # i.e. "+" if x0 >= 0 else "" in python >= 2.5
482 ["", "+"][x0 >= 0], x0,
483 ["", "+"][y0 >= 0], y0)
484

◆ to_string()

lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.to_string ( self)

Reimplemented in lsst.gdb.afw.printers.GdbOptionParser.MaskedImagePrinter, and lsst.gdb.afw.printers.GdbOptionParser.ExposurePrinter.

Definition at line 492 of file printers.py.

492 def to_string(self):
493 return "%s(%s)" % (self.typeName(), self.dimenStr())
494
495 class MaskedImagePrinter(ImagePrinter):

◆ typeName()

lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.typeName ( self)

Definition at line 485 of file printers.py.

485 def typeName(self):
486 return self.typename.split(":")[-1]
487

Member Data Documentation

◆ typename

lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.typename

Definition at line 489 of file printers.py.

◆ val

lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.val

Definition at line 490 of file printers.py.


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