|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
Public Member Functions | |
| def | __init__ |
| def | __getattr__ |
| def | __setattr__ |
Private Attributes | |
| _modname | |
An object cognisant of debugging parameters appropriate for module "name"; any request for a value
will return False unless that value has been set, either in the module or as an attribute of this object.
E.g.
import lsstDebug
display = lsstDebug.Info(__name__).display
will set display to False, unless display has been set with
lsstDebug.Info(__name__).display = True
Why is this interesting? Because you can replace lsstDebug.Info with your own version, e.g.
import lsstDebug
def DebugInfo(name):
di = lsstDebug.getInfo(name) # N.b. lsstDebug.Info(name) would call us recursively
if name == "foo":
di.display = True
return di
lsstDebug.Info = DebugInfo
Definition at line 26 of file lsstDebug.py.
| def lsstDebug.Info.__init__ | ( | self, | |
| modname | |||
| ) |
Definition at line 50 of file lsstDebug.py.
| def lsstDebug.Info.__getattr__ | ( | self, | |
| what | |||
| ) |
Return the value of the variable "what" in self.__modname if set, else False
Definition at line 55 of file lsstDebug.py.
| def lsstDebug.Info.__setattr__ | ( | self, | |
| what, | |||
| value | |||
| ) |
Set the value of the variable "what" in self.__modname to value
Definition at line 59 of file lsstDebug.py.
|
private |
Definition at line 53 of file lsstDebug.py.
1.8.5