lsst.utils¶
Python API reference¶
lsst.utils Package¶
Functions¶
continueClass (cls) |
Re-open the decorated class, adding any new definitions into the original. |
cppIndex (*args, **kwargs) |
Overloaded function. |
decDegToStr ((arg0: float) -> str) |
|
decRadToStr ((arg0: float) -> str) |
|
decStrToDeg ((raStr: str, ...) |
|
decStrToRad ((raStr: str, ...) |
|
demangleType ((arg0: str) -> str) |
|
getPackageDir ((arg0: str) -> str) |
|
get_caller_name ([skip]) |
Get the name of the caller method. |
inClass (cls[, name]) |
Add the decorated function to the given class as a method. |
raDecDegToStr ((arg0: float, arg1: float) -> str) |
|
raDecRadToStr ((arg0: float, arg1: float) -> str) |
|
raDegToStr ((arg0: float) -> str) |
|
raRadToStr ((arg0: float) -> str) |
|
raStrToDeg ((raStr: str, ...) |
|
raStrToRad ((raStr: str, ...) |
Classes¶
TemplateMeta |
A metaclass for abstract base classes that tie together wrapped C++ template types. |
Class Inheritance Diagram¶
lsst.utils.tests Module¶
Support code for running unit tests
Functions¶
init () |
Initialize the memory tester and file descriptor leak tester. |
run (suite[, exit]) |
Run a test suite and report the test return status to caller or shell. |
getTempFilePath (ext[, expectOutput]) |
Return a path suitable for a temporary file and try to delete the |
assertFloatsAlmostEqual (testCase, lhs, rhs) |
Highly-configurable floating point comparisons for scalars and arrays. |
assertFloatsNotEqual (testCase, lhs, rhs, **kwds) |
Fail a test if the given floating point values are equal to within the given tolerances. |
assertFloatsEqual (testCase, lhs, rhs, **kwargs) |
Assert that lhs == rhs (both numeric types, whether scalar or array). |
Classes¶
MemoryTestCase ([methodName]) |
Check for memory leaks since memId0 was allocated |
ExecutablesTestCase ([methodName]) |
Test that executables can be run and return good status. |
TestCase ([methodName]) |
Subclass of unittest.TestCase that adds some custom assertions for convenience. |