lsst-utils v25.0.0 (2023-02-17)¶
New Features¶
Added
lsst.utils.timer.profileto allow code blocks to be profiled easily. (DM-35697)
Miscellaneous Changes of Minor Interest¶
lsst-utils v24.0.0 (2022-08-26)¶
New Features¶
Add option to ignore NaNs in
lsst.utils.tests.assertFloatsAlmostEqual. (DM-29370)Add test decorators to operate on cartesian product. (DM-31141)
Several new packages added from
pipe_baseanddaf_butler:lsst.utils.timerlsst.utils.classeslsst.utils.introspectionlsst.utils.iterationlsst.utils.logging
Added
lsst.utils.doImportTypeto import a python type from a string and guarantee it is not a module.lsst.utils.get_caller_nameis now deprecated in its current location and has been relocated tolsst.utils.introspection. (DM-31722)
Add
lsst.logging.set_trace_atto controlTRACE-level loggers. (DM-32142)Builds using
setuptoolsnow calculate versions from the Git repository, including the use of alpha releases for those associated with weekly tags. (DM-32408)Context manager
lsst.utils.timer.time_thiscan now include memory usage in its report. (DM-33331)A new package
lsst.utils.packageshas been added to allow system package versions to be obtained. This code has been relocated fromlsst.base. (DM-33403)Add
lsst.utils.threadsfor control of threads. Uselsst.utils.threads.disable_implicit_threading()to disable implicit threading. This function should be used in place oflsst.base.disableImplicitThreading()in all new code. This package now depends on thethreadpoolctlpackage. (DM-33622)Added a new class
lsst.utils.logging.PeriodicLoggerto allow a user to issue log messages after some time interval has elapsed. (DM-33919)Added
lsst.utils.logging.getTraceLoggerto simplify the creation of a trace logger that uses aTRACEnprefix for the logger name. (DM-34208)
API Changes¶
The values for max resident set size stored in metadata are now consistently reported as bytes. Previously the units were platform specific (kibibytes on Liux and bytes on macOS). (DM-20970)
deprecate_pybind11now requires aversionparameter. This matches the upstream requirement fromdeprecated.deprecated(DM-29701)Add parameter to
getEnvironmentPackagesto return all EUPS packages rather than just those that are locally setup. (DM-33934)
Performance Enhancement¶
Fixed an optimization when using
lsst.utils.TemplateMetaclasses withisinstanceorissubclass. (DM-32661)
lsst-utils v23.0.0 (2021-09-27)¶
Moved all C++ code out of this package and into
cpputilspackage and changed license to BSD 3-clause. (DM-31721)
lsst-utils v22.0 (2021-07-09)¶
Bug fix¶
Error reporting in
doImporthas been improved. [DM-27638]
lsst-utils v21.0 (2020-12-08)¶
New Features¶
Added a temporary directory context manager
lsst.utils.tests.temporaryDirectory. [DM-26774]
API Change¶
Add an optional
versionparameter tolsst.utils.deprecate_pybind11. [DM-26285]