lsst.utils¶
The lsst.utils module provides common code for tests, interfacing between C++ and Python, and debugging.
Contributing¶
lsst.utils is developed at https://github.com/lsst/utils.
You can find Jira issues for this module under the utils component.
Python API reference¶
lsst.utils Package¶
Functions¶
| 
 | Re-open the decorated class, adding any new definitions into the original. | 
| 
 | |
| 
 | Deprecate a pybind11-wrapped C++ interface function, method or class. | 
| 
 | Import a python object given an importable string and return it. | 
| 
 | |
| 
 | Get the name of the caller method. | 
| 
 | Add the decorated function to the given class as a method. | 
| 
 | Extends existing documentation for a method that exists in another class and extend it with any additional documentation defined. | 
Classes¶
| A metaclass for abstract base classes that tie together wrapped C++ template types. | 
Class Inheritance Diagram¶
lsst.utils.tests Module¶
Functions¶
| 
 | Initialize the memory tester and file descriptor leak tester. | 
| 
 | Return a path suitable for a temporary file and try to delete the file on success | 
| 
 | Highly-configurable floating point comparisons for scalars and arrays. | 
| 
 | Fail a test if the given floating point values are equal to within the given tolerances. | 
| 
 | Assert that lhs == rhs (both numeric types, whether scalar or array). | 
| 
 | Decorator to enter the debugger when there’s an uncaught exception | 
| 
 | Class decorator for generating unit tests | 
| 
 | Method decorator for unit tests | 
Classes¶
| 
 | Check for resource leaks. | 
| 
 | Test that executables can be run and return good status. | 
| 
 | Subclass of unittest.TestCase that adds some custom assertions for convenience. |