Skip to content

Commit

Permalink
Renamed SO3Array to SO3Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
javicarron committed Feb 20, 2024
1 parent 70b659d commit c311702
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pynkowski/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
HealpixP2,
DataArray,
SO3Healpix,
SO3Array)
SO3Patch)

from .theory import (TheoryField,
Gaussian,
Expand Down
2 changes: 1 addition & 1 deletion pynkowski/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
try:
import healpy as hp
from .healpix import Healpix, HealpixP2
from .so3data import SO3Healpix, SO3Array
from .so3data import SO3Healpix, SO3Patch
except ImportError:
hp = None
print("healpy was not loaded, some functionality will be unavailable")
Expand Down
4 changes: 2 additions & 2 deletions pynkowski/data/so3data.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def get_second_der(self, lmax=None):
# (-np.sin(theta) * U_der_der[1] + np.sin(theta) * 4. * self.U + 4.*Q_der[1] + np.cos(theta)*U_der[0] ) / (4.*np.cos(theta)**2.), normalise=False)


class SO3Array(SO3DataField):
class SO3Patch(SO3DataField):
"""Class for spin fields in the SO(3) formalism, with Q and U as 2D `np.array` patches. This assumes a flat sky approximation on the patch.
Parameters
Expand Down Expand Up @@ -680,6 +680,6 @@ def get_second_der(self):
ftheta.derpsi() / 2. ]


__all__ = ["SO3Healpix", "SO3Array", "QUarray", "SO3DataField"]
__all__ = ["SO3Healpix", "SO3Patch", "QUarray", "SO3DataField"]

__docformat__ = "numpy"

0 comments on commit c311702

Please sign in to comment.