@@ -23,7 +23,7 @@ def f_shape(
2323 N (int): Directional band-limit.
2424
2525 sampling (str, optional): Sampling scheme. Supported sampling schemes include
26- {"mw", "mwss", "dh"}. Defaults to "mw".
26+ {"mw", "mwss", "dh", "gl" }. Defaults to "mw".
2727
2828 nside (int, optional): HEALPix Nside resolution parameter. Only required
2929 if sampling="healpix". Defaults to None.
@@ -35,15 +35,12 @@ def f_shape(
3535 Tuple[int,int,int]: Shape of pixel-space sampling of rotation group
3636 :math:`SO(3)`.
3737 """
38- if sampling in ["mw" , "mwss" , "dh" ]:
38+ if sampling in ["mw" , "mwss" , "dh" , "gl" ]:
3939 return _ngamma (N ), _nbeta (L , sampling ), _nalpha (L , sampling )
4040
4141 elif sampling .lower () == "healpix" :
4242 return _ngamma (N ), 12 * nside ** 2
4343
44- elif sampling .lower () == "healpix" :
45- return 12 * nside ** 2 , _ngamma (N )
46-
4744 else :
4845 raise ValueError (f"Sampling scheme sampling={ sampling } not supported" )
4946
@@ -76,7 +73,7 @@ def fnab_shape(
7673 N (int): Directional band-limit.
7774
7875 sampling (str, optional): Sampling scheme. Supported sampling schemes include
79- {"mw", "mwss", "dh"}. Defaults to "mw".
76+ {"mw", "mwss", "dh", "gl" }. Defaults to "mw".
8077
8178 nside (int, optional): HEALPix Nside resolution parameter.
8279
@@ -91,7 +88,7 @@ def fnab_shape(
9188 if sampling .lower () in ["mwss" , "healpix" ]:
9289 return _ngamma (N ), samples .ntheta (L , sampling , nside ), 2 * L
9390
94- elif sampling .lower () in ["mw" , "dh" ]:
91+ elif sampling .lower () in ["mw" , "dh" , "gl" ]:
9592 return _ngamma (N ), samples .ntheta (L , sampling , nside ), 2 * L - 1
9693
9794 else :
@@ -121,15 +118,15 @@ def _nalpha(L: int, sampling: str = "mw") -> int:
121118 L (int): Harmonic band-limit.
122119
123120 sampling (str, optional): Sampling scheme. Supported sampling schemes include
124- {"mw", "mwss", "dh"}. Defaults to "mw".
121+ {"mw", "mwss", "dh", "gl" }. Defaults to "mw".
125122
126123 Raises:
127124 ValueError: Unknown sampling scheme.
128125
129126 Returns:
130127 int: Number of :math:`\alpha` samples.
131128 """
132- if sampling .lower () in ["mw" , "dh" ]:
129+ if sampling .lower () in ["mw" , "dh" , "gl" ]:
133130 return 2 * L - 1
134131
135132 elif sampling .lower () == "mwss" :
@@ -146,15 +143,15 @@ def _nbeta(L: int, sampling: str = "mw") -> int:
146143 L (int): Harmonic band-limit.
147144
148145 sampling (str, optional): Sampling scheme. Supported sampling schemes include
149- {"mw", "mwss", "dh"}. Defaults to "mw".
146+ {"mw", "mwss", "dh", "gl" }. Defaults to "mw".
150147
151148 Raises:
152149 ValueError: Unknown sampling scheme.
153150
154151 Returns:
155152 int: Number of :math:`\beta` samples.
156153 """
157- if sampling .lower () == "mw" :
154+ if sampling .lower () in [ "mw" , "gl" ] :
158155 return L
159156
160157 elif sampling .lower () == "mwss" :
0 commit comments