Skip to content

Commit

Permalink
Merge pull request #4 from lsst/tickets/DM-7304
Browse files Browse the repository at this point in the history
DM-7304: Python 3
  • Loading branch information
fred3m committed Sep 5, 2016
2 parents 63326a6 + e126bcc commit c5fb14c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
3 changes: 2 additions & 1 deletion python/lsst/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import pkgutil, lsstimport
import pkgutil
import lsstimport
__path__ = pkgutil.extend_path(__path__, __name__)
3 changes: 2 additions & 1 deletion python/lsst/meas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import pkgutil, lsstimport
import pkgutil
import lsstimport
__path__ = pkgutil.extend_path(__path__, __name__)
3 changes: 2 additions & 1 deletion python/lsst/meas/extensions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import pkgutil, lsstimport
import pkgutil
import lsstimport
__path__ = pkgutil.extend_path(__path__, __name__)
14 changes: 7 additions & 7 deletions python/lsst/meas/extensions/shapeHSM/__init__.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#
#
# LSST Data Management System
# Copyright 2008, 2009, 2010 LSST Corporation.
#
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the LSST License Statement and
# the GNU General Public License along with this program. If not,
#
# You should have received a copy of the LSST License Statement and
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#

Expand All @@ -37,4 +37,4 @@
Control=HsmSourceMomentsControl, executionOrder=BasePlugin.SHAPE_ORDER)
wrapSimpleAlgorithm(HsmPsfMomentsAlgorithm, name="ext_shapeHSM_HsmPsfMoments",
Control=HsmPsfMomentsControl, executionOrder=BasePlugin.SHAPE_ORDER)
del lsst # cleanup namespace
del lsst # cleanup namespace
4 changes: 3 additions & 1 deletion tests/testHsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# the GNU General Public License along with this program. If not,
# see <https://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import print_function
import re
import os
import sys
Expand Down Expand Up @@ -135,7 +136,7 @@


def makePluginAndCat(alg, name, control=None, metadata=False, centroid=None):
print "Making plugin ", alg, name
print("Making plugin ", alg, name)
if control == None:
control = alg.ConfigClass()
schema = afwTable.SourceTable.makeMinimalSchema()
Expand Down Expand Up @@ -340,6 +341,7 @@ def testHsmPsfMoments(self):

#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


class TestMemory(lsst.utils.tests.MemoryTestCase):
pass

Expand Down

0 comments on commit c5fb14c

Please sign in to comment.