Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: utils
-
Labels:
-
Story Points:1
-
Team:Architecture
-
Urgent?:No
Description
Sometimes when calculating warning or log stacklevels, you would like to know what value to use to ensure that the message comes from user code outside of the current module.
Move the implementation that is in lsst.utils.timer into lsst.utils.introspection and make it more general.
Kian-Tat Lim this relocates an internal function so that it can be used elsewhere. I found it helpful when refactoring the butler.registry.dimensions usage.