Skip to content

Commit

Permalink
Remove obsolete SWIG casts
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen authored and Pim Schellart committed Mar 1, 2017
1 parent d0bf788 commit dbe7234
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/lsst/obs/lsstSim/processCalibLsstSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
import lsst.afw.cameraGeom as cameraGeom
import lsst.afw.image as afwImage
import lsst.afw.math as afwMath
import lsst.afw.geom as afwGeom
Expand Down Expand Up @@ -94,7 +93,7 @@ def run(self, sensorRefList, calibType):
expmeta = ampExposure.getMetadata()
expfilter = ampExposure.getFilter()
expcalib = ampExposure.getCalib()
ampDetector = cameraGeom.cast_Amp(ampExposure.getDetector())
ampDetector = ampExposure.getDetector()

ampExposure = self.convertIntToFloat(ampExposure)
ampExpDataView = ampExposure.Factory(ampExposure, ampDetector.getDiskDataSec())
Expand Down Expand Up @@ -163,7 +162,7 @@ def fixDefectsAndSat(self, masterFrame, detector):
x = dataBbox.getMinY()
height = dataBbox.getDimensions()[0]
# When at detector level, there will not be the need to go through the step of getting the parent
defectList = cameraGeom.cast_Ccd(detector.getParent()).getDefects()
defectList = detector.getParent().getDefects()
dl = self.transposeDefectList(defectList, dataBbox)
for d in dl:
d.shift(-x, -y)
Expand Down

0 comments on commit dbe7234

Please sign in to comment.