lsst.shapelet  13.0-4-g5a043c4+13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
constantsContinued.py
Go to the documentation of this file.
1 from __future__ import absolute_import, division, print_function
2 
3 from .constants import BasisTypeEnum
4 
5 from lsst.utils import continueClass
6 
7 __all__ = []
8 
9 @continueClass
11  # Workaround for broken pickling on Python 2
12  # Without this fails with: TypeError: lsst.shapelet.constants.BasisTypeEnum.__new__(
13  # lsst.shapelet.constants.BasisTypeEnum) is not safe, use object.__new__()
14  def __reduce__(self):
15  return (BasisTypeEnum, (int(self), ))
16