LSSTApplications  11.0-13-gbb96280,12.1.rc1,12.1.rc1+1,12.1.rc1+2,12.1.rc1+5,12.1.rc1+8,12.1.rc1-1-g06d7636+1,12.1.rc1-1-g253890b+5,12.1.rc1-1-g3d31b68+7,12.1.rc1-1-g3db6b75+1,12.1.rc1-1-g5c1385a+3,12.1.rc1-1-g83b2247,12.1.rc1-1-g90cb4cf+6,12.1.rc1-1-g91da24b+3,12.1.rc1-2-g3521f8a,12.1.rc1-2-g39433dd+4,12.1.rc1-2-g486411b+2,12.1.rc1-2-g4c2be76,12.1.rc1-2-gc9c0491,12.1.rc1-2-gda2cd4f+6,12.1.rc1-3-g3391c73+2,12.1.rc1-3-g8c1bd6c+1,12.1.rc1-3-gcf4b6cb+2,12.1.rc1-4-g057223e+1,12.1.rc1-4-g19ed13b+2,12.1.rc1-4-g30492a7
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.