Skip to content

Commit

Permalink
Remove deprecated ExposureIdInfo interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Dec 28, 2023
1 parent 7dcc1e6 commit e3f8986
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions python/lsst/ip/diffim/detectAndMeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from deprecated.sphinx import deprecated
import numpy as np

import lsst.afw.table as afwTable
Expand All @@ -28,7 +27,6 @@
from lsst.meas.base import ForcedMeasurementTask, ApplyApCorrTask, DetectorVisitIdGeneratorConfig
import lsst.meas.extensions.trailedSources # noqa: F401
import lsst.meas.extensions.shapeHSM
from lsst.obs.base import ExposureIdInfo
import lsst.pex.config as pexConfig
import lsst.pipe.base as pipeBase
import lsst.utils
Expand Down Expand Up @@ -226,39 +224,6 @@ def __init__(self, **kwargs):
self.outputSchema = afwTable.SourceCatalog(self.schema)
self.outputSchema.getTable().setMetadata(self.algMetadata)

# TODO: remove on DM-38687.
@staticmethod
@deprecated(
reason=(
"ID factory construction now depends on configuration; use the "
"idGenerator config field. Will be removed after v26."
),
version="v26.0",
category=FutureWarning,
)
def makeIdFactory(expId, expBits):
"""Create IdFactory instance for unique 64 bit diaSource id-s.
Parameters
----------
expId : `int`
Exposure id.
expBits: `int`
Number of used bits in ``expId``.
Notes
-----
The diasource id-s consists of the ``expId`` stored fixed in the highest value
``expBits`` of the 64-bit integer plus (bitwise or) a generated sequence number in the
low value end of the integer.
Returns
-------
idFactory: `lsst.afw.table.IdFactory`
"""
return ExposureIdInfo(expId, expBits).makeSourceIdFactory()

def runQuantum(self, butlerQC: pipeBase.ButlerQuantumContext,
inputRefs: pipeBase.InputQuantizedConnection,
outputRefs: pipeBase.OutputQuantizedConnection):
Expand Down

0 comments on commit e3f8986

Please sign in to comment.