Skip to content

Commit

Permalink
Removed Python 2 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor Kovacs committed Oct 13, 2018
1 parent 385f8a0 commit fdca8db
Show file tree
Hide file tree
Showing 20 changed files with 4 additions and 44 deletions.
2 changes: 0 additions & 2 deletions examples/shapeletBases.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
# see <http://www.lsstcorp.org/LegalNotices/>.
#

from __future__ import absolute_import, division, print_function
from builtins import range
import lsst.shapelet
from lsst.afw import geom
from lsst.afw.geom import ellipses
Expand Down
2 changes: 0 additions & 2 deletions examples/timeModels.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, division, print_function

import numpy
import pickle
import os
Expand Down
1 change: 0 additions & 1 deletion python/lsst/shapelet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

"""lsst.shapelet
"""
from __future__ import absolute_import, division, print_function
from .version import *

import lsst.afw.geom
Expand Down
2 changes: 0 additions & 2 deletions python/lsst/shapelet/constants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
# see <https://www.lsstcorp.org/LegalNotices/>.
#/

from __future__ import absolute_import, division, print_function

from .constants import *
from .constantsContinued import *

2 changes: 0 additions & 2 deletions python/lsst/shapelet/constants/constantsContinued.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, division, print_function

from .constants import BasisTypeEnum

from lsst.utils import continueClass
Expand Down
1 change: 0 additions & 1 deletion python/lsst/shapelet/generator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, division, print_function
from builtins import range, object
from .constants import HERMITE, LAGUERRE, computeSize

Expand Down
2 changes: 0 additions & 2 deletions python/lsst/shapelet/multiShapeletFunction/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
# see <https://www.lsstcorp.org/LegalNotices/>.
#/

from __future__ import absolute_import, division, print_function

from .multiShapeletFunction import *
from .multiShapeletFunctionContinued import *

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, division, print_function

from .multiShapeletFunction import MultiShapeletFunction

from lsst.utils import continueClass
Expand Down
2 changes: 0 additions & 2 deletions python/lsst/shapelet/radialProfile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
# see <https://www.lsstcorp.org/LegalNotices/>.
#/

from __future__ import absolute_import, division, print_function

from .radialProfile import *
from .radialProfileContinued import *

2 changes: 0 additions & 2 deletions python/lsst/shapelet/radialProfile/radialProfileContinued.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, division, print_function

import numpy as np

from .radialProfile import RadialProfile
Expand Down
2 changes: 0 additions & 2 deletions python/lsst/shapelet/shapeletFunction/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
# see <https://www.lsstcorp.org/LegalNotices/>.
#/

from __future__ import absolute_import, division, print_function

from .shapeletFunction import *
from .shapeletFunctionContinued import *

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, division, print_function

from .shapeletFunction import ShapeletFunction

from lsst.utils import continueClass
Expand Down
4 changes: 0 additions & 4 deletions python/lsst/shapelet/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
Test utility code for shapelets library; here so it can be used
in multiple test scripts and tests in downstream packages.
"""
from __future__ import absolute_import, division, print_function
from builtins import zip
from builtins import range

import numpy
try:
import scipy.ndimage
Expand Down
2 changes: 0 additions & 2 deletions tests/test_functorKeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import absolute_import, division, print_function
from builtins import range
import unittest

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions tests/test_hermiteTransformMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
# see <http://www.lsstcorp.org/LegalNotices/>.
#

from __future__ import absolute_import, division, print_function
from builtins import range
import unittest

import numpy as np
Expand Down
3 changes: 1 addition & 2 deletions tests/test_matrixBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import absolute_import, division, print_function
from builtins import zip

import unittest

import numpy as np
Expand Down
6 changes: 1 addition & 5 deletions tests/test_multiShapelet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import absolute_import, division, print_function
from future import standard_library
standard_library.install_aliases() # noqa E402
from builtins import zip
from builtins import range

import pickle
import unittest

Expand Down
2 changes: 1 addition & 1 deletion tests/test_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import absolute_import, division, print_function

import unittest
import os

Expand Down
2 changes: 0 additions & 2 deletions tests/test_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import absolute_import, division, print_function

from builtins import zip
import unittest

import numpy as np
Expand Down
5 changes: 1 addition & 4 deletions tests/test_shapeletFunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import absolute_import, division, print_function
from future import standard_library
standard_library.install_aliases() # noqa E402
from builtins import zip

import unittest
import pickle

Expand Down

0 comments on commit fdca8db

Please sign in to comment.