diff --git a/python/lsst/ap/association/diaForcedSource.py b/python/lsst/ap/association/diaForcedSource.py index 974f08c9..9470301e 100644 --- a/python/lsst/ap/association/diaForcedSource.py +++ b/python/lsst/ap/association/diaForcedSource.py @@ -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: diff --git a/python/lsst/ap/association/packageAlerts.py b/python/lsst/ap/association/packageAlerts.py index 45143894..f20a3de1 100644 --- a/python/lsst/ap/association/packageAlerts.py +++ b/python/lsst/ap/association/packageAlerts.py @@ -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)