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)
decRadToStr(arg0)
decStrToDeg(raStr, delimiter)
decStrToRad(raStr, delimiter)
demangleType(arg0)
getPackageDir(arg0)
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, arg1)
raDecRadToStr(arg0, arg1)
raDegToStr(arg0)
raRadToStr(arg0)
raStrToDeg(raStr, delimiter)
raStrToRad(raStr, delimiter)

Classes

TemplateMeta A metaclass for abstract base classes that tie together wrapped C++ template types.

Class Inheritance Diagram

Inheritance diagram of lsst.utils.wrappers.TemplateMeta

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 file on success
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.

Class Inheritance Diagram

Inheritance diagram of lsst.utils.tests.MemoryTestCase, lsst.utils.tests.ExecutablesTestCase, lsst.utils.tests.TestCase