Skip to content

Commit

Permalink
Merge pull request #176 from lsst/tickets/DM-40032
Browse files Browse the repository at this point in the history
DM-40032: Add stacklevel parameter to the warnings
  • Loading branch information
timj committed Aug 3, 2023
2 parents 411fad2 + 6fb36c3 commit 6758148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/ap/association/diaForcedSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def run(self,
warnings.warn(
"'expIdBits' argument is deprecated in favor of 'idGenerator'; will be removed after v26.",
category=FutureWarning,
stacklevel=3, # Caller + timeMethod
)

if idGenerator is None:
Expand Down
1 change: 1 addition & 0 deletions python/lsst/ap/association/packageAlerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def run(self,
warnings.warn(
"The 'ccdExposureIdBits' argument is deprecated and unused; it will be removed after v26.",
category=FutureWarning,
stacklevel=3, # Caller + timeMethod
)
alerts = []
self._patchDiaSources(diaSourceCat)
Expand Down

0 comments on commit 6758148

Please sign in to comment.