Skip to content

Commit

Permalink
Revert "Make sure __module__ is set correctly on public types"
Browse files Browse the repository at this point in the history
This reverts commit d3258b2.

This broke `inspect.getsource(MultiVector)`, which in turn breaks `:member-order: by-source` in sphinx
  • Loading branch information
eric-wieser committed Mar 27, 2020
1 parent c419bf3 commit 4f3ef08
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 31 deletions.
4 changes: 0 additions & 4 deletions clifford/_blademap.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
from . import _utils


@_utils.set_module('clifford')
class BladeMap(object):
'''
A Map Relating Blades in two different algebras
Expand Down
2 changes: 0 additions & 2 deletions clifford/_conformal_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

from ._layout import Layout
from ._multivector import MultiVector
from . import _utils


@_utils.set_module('clifford')
class ConformalLayout(Layout):
r"""
A layout for a conformal algebra, which adds extra constants and helpers.
Expand Down
3 changes: 0 additions & 3 deletions clifford/_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
from ._mvarray import MVArray
from .operator import op
from . import _settings
from . import _utils
from ._multivector import MultiVector


@_utils.set_module('clifford')
class Frame(MVArray):
'''
A frame of vectors
Expand Down
2 changes: 0 additions & 2 deletions clifford/_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from . import _numba_utils
from .io import read_ga_file
from . import _settings
from . import _utils
from ._multivector import MultiVector
from ._layout_helpers import (
BasisBladeOrder, BasisVectorIds, canonical_reordering_sign_euclidean
Expand Down Expand Up @@ -160,7 +159,6 @@ def construct_tables(
)


@_utils.set_module('clifford')
class Layout(object):
r""" Layout stores information regarding the geometric algebra itself and the
internal representation of multivectors.
Expand Down
3 changes: 0 additions & 3 deletions clifford/_layout_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import operator

from . import _numba_utils
from . import _utils
import numba
import numba.extending
import numba.types
Expand Down Expand Up @@ -73,7 +72,6 @@ def _is_unique(x) -> bool:
return len(x) == len(set(x))


@_utils.set_module('clifford')
class BasisBladeOrder:
""" Represents the storage order in memory of basis blade coefficients.
Expand Down Expand Up @@ -172,7 +170,6 @@ def __reduce__(self):
IdT = TypeVar('IdT')


@_utils.set_module('clifford')
class BasisVectorIds(Generic[IdT]):
"""
Stores ids for the ordered set of basis vectors, typically integers.
Expand Down
2 changes: 0 additions & 2 deletions clifford/_multivector.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
import clifford as cf
from . import general_exp
from . import _settings
from . import _utils


@_utils.set_module('clifford')
class MultiVector(object):
"""An element of the algebra
Expand Down
2 changes: 0 additions & 2 deletions clifford/_mvarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@

from clifford.io import write_ga_file, read_ga_file # noqa: F401
from ._multivector import MultiVector
from . import _utils

dual_array = np.vectorize(MultiVector.dual)
normal_array = np.vectorize(MultiVector.normal)
call_array = np.vectorize(MultiVector.__call__)


@_utils.set_module('clifford')
class MVArray(np.ndarray):
'''
MultiVector Array
Expand Down
13 changes: 0 additions & 13 deletions clifford/_utils.py

This file was deleted.

0 comments on commit 4f3ef08

Please sign in to comment.