LSSTApplications  11.0-13-gbb96280,12.1+18,12.1+7,12.1-1-g14f38d3+72,12.1-1-g16c0db7+5,12.1-1-g5961e7a+84,12.1-1-ge22e12b+23,12.1-11-g06625e2+4,12.1-11-g0d7f63b+4,12.1-19-gd507bfc,12.1-2-g7dda0ab+38,12.1-2-gc0bc6ab+81,12.1-21-g6ffe579+2,12.1-21-gbdb6c2a+4,12.1-24-g941c398+5,12.1-3-g57f6835+7,12.1-3-gf0736f3,12.1-37-g3ddd237,12.1-4-gf46015e+5,12.1-5-g06c326c+20,12.1-5-g648ee80+3,12.1-5-gc2189d7+4,12.1-6-ga608fc0+1,12.1-7-g3349e2a+5,12.1-7-gfd75620+9,12.1-9-g577b946+5,12.1-9-gc4df26a+10
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsstDebug Namespace Reference

Classes

class  Info
 

Functions

def getDebugFrame
 

Variables

 getInfo = Info
 

Function Documentation

def lsstDebug.getDebugFrame (   debugDisplay,
  name 
)
Attempt to extract a frame for displaying a product called `name` from the `debugDisplay` variable.

Per the above, an instance of `Info` can return an arbitrary object (or nothing) as its `display`
attribute. It is convenient -- though not required -- that it be a dictionary mapping data products
to frame numbers, as shown in the `lsstDebug.Info` example. Given such a dictionary, this function
extracts and returns the appropriate frame number. If `debugDisplay` is not a collection, or if
`name` is not found within it, we return `None`.

@param[in] debugDisplay  The contents of lsstDebug.Info(__name__).display.
@param[in] name          The name of the data product to be displayed.
@returns   A frame number

Definition at line 66 of file lsstDebug.py.

66 
67 def getDebugFrame(debugDisplay, name):
68  """
69  Attempt to extract a frame for displaying a product called `name` from the `debugDisplay` variable.
70 
71  Per the above, an instance of `Info` can return an arbitrary object (or nothing) as its `display`
72  attribute. It is convenient -- though not required -- that it be a dictionary mapping data products
73  to frame numbers, as shown in the `lsstDebug.Info` example. Given such a dictionary, this function
74  extracts and returns the appropriate frame number. If `debugDisplay` is not a collection, or if
75  `name` is not found within it, we return `None`.
76 
77  @param[in] debugDisplay The contents of lsstDebug.Info(__name__).display.
78  @param[in] name The name of the data product to be displayed.
79  @returns A frame number
80  """
81  if hasattr(debugDisplay, "__contains__") and name in debugDisplay:
82  return debugDisplay[name]
83  else:
84  return None
def getDebugFrame
Definition: lsstDebug.py:66

Variable Documentation

lsstDebug.getInfo = Info

Definition at line 64 of file lsstDebug.py.