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 as a string in the form module.class.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

Inheritance diagram of lsst.utils.wrappers.TemplateMeta

lsst.utils.tests Module

Support code for running unit tests

Functions

init() Initialize the memory tester
run(suite[, exit]) Exit with the status code resulting from running the provided test suite
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