Skip to content

Commit 8f840fc

Browse files
committed
fixes
1 parent f993b61 commit 8f840fc

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

glass/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
The :mod:`glass.core` module contains core functionality for developing
88
GLASS modules.
99
10-
""" # noqa: D205, D400
10+
""" # noqa: D400

glass/core/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def broadcast_leading_axes(
8787
return (dims, *arrs)
8888

8989

90-
def ndinterp( # noqa: PLR0913
90+
def ndinterp(
9191
x: float | npt.NDArray[np.float64],
9292
xp: collections.abc.Sequence[float] | npt.NDArray[np.float64],
9393
fp: collections.abc.Sequence[float] | npt.NDArray[np.float64],

glass/galaxies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
.. autofunction:: galaxy_shear
1616
.. autofunction:: gaussian_phz
1717
18-
""" # noqa: D205, D400
18+
""" # noqa: D400
1919

2020
from __future__ import annotations
2121

@@ -145,7 +145,7 @@ def redshifts_from_nz(
145145
return redshifts
146146

147147

148-
def galaxy_shear( # noqa: PLR0913
148+
def galaxy_shear(
149149
lon: npt.NDArray[np.float64],
150150
lat: npt.NDArray[np.float64],
151151
eps: npt.NDArray[np.float64],
@@ -305,7 +305,7 @@ def gaussian_phz(
305305
return zphot
306306

307307

308-
def _kappa_ia_nla( # noqa: PLR0913
308+
def _kappa_ia_nla(
309309
delta: npt.NDArray[np.float64],
310310
zeff: float,
311311
a_ia: float,

glass/lensing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
.. autofunction:: deflect
2929
30-
""" # noqa: D205, D400
30+
""" # noqa: D400
3131

3232
from __future__ import annotations
3333

@@ -156,7 +156,7 @@ def from_convergence(
156156
...
157157

158158

159-
def from_convergence( # noqa: PLR0913
159+
def from_convergence(
160160
kappa: npt.NDArray[np.float64],
161161
lmax: int | None = None,
162162
*,

glass/observations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
.. autofunction:: vmap_galactic_ecliptic
2525
26-
""" # noqa: D205, D400
26+
""" # noqa: D400
2727

2828
from __future__ import annotations
2929

glass/points.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
.. autofunction:: linear_bias
2828
.. autofunction:: loglinear_bias
2929
30-
""" # noqa: D205, D400
30+
""" # noqa: D400
3131

3232
from __future__ import annotations
3333

@@ -135,7 +135,7 @@ def loglinear_bias(
135135
return delta_g
136136

137137

138-
def positions_from_delta( # noqa: PLR0912, PLR0913, PLR0915
138+
def positions_from_delta( # noqa: PLR0915
139139
ngal: float | npt.NDArray[np.float64],
140140
delta: npt.NDArray[np.float64],
141141
bias: float | npt.NDArray[np.float64] | None = None,
@@ -221,7 +221,7 @@ def positions_from_delta( # noqa: PLR0912, PLR0913, PLR0915
221221
if isinstance(bias_model, str):
222222
bias_model_callable = globals()[f"{bias_model}_bias"]
223223
elif not callable(bias_model):
224-
raise TypeError("bias_model must be string or callable") # noqa: EM101,TRY003
224+
raise TypeError("bias_model must be string or callable")
225225
else:
226226
bias_model_callable = bias_model
227227

glass/shapes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
.. autofunction:: triaxial_axis_ratio
2222
23-
""" # noqa: D205, D400
23+
""" # noqa: D400
2424

2525
from __future__ import annotations
2626

@@ -97,7 +97,7 @@ def triaxial_axis_ratio(
9797
)
9898

9999

100-
def ellipticity_ryden04( # noqa: PLR0913
100+
def ellipticity_ryden04(
101101
mu: float | npt.NDArray[np.float64],
102102
sigma: float | npt.NDArray[np.float64],
103103
gamma: float | npt.NDArray[np.float64],

glass/shells.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
.. autofunction:: volume_weight
4242
.. autofunction:: density_weight
4343
44-
""" # noqa: D205, D400
44+
""" # noqa: D400
4545

4646
from __future__ import annotations
4747

@@ -176,7 +176,7 @@ class RadialWindow(typing.NamedTuple):
176176

177177
za: npt.NDArray[np.float64]
178178
wa: npt.NDArray[np.float64]
179-
zeff: float | npt.NDArray[np.float64] = 0
179+
zeff: float = 0
180180

181181

182182
def tophat_windows(
@@ -238,7 +238,7 @@ def tophat_windows(
238238
z = np.linspace(zmin, zmax, n, dtype=np.float64)
239239
w = wht(z)
240240
zeff = np.trapezoid(w * z, z) / np.trapezoid(w, z)
241-
ws.append(RadialWindow(z, w, zeff))
241+
ws.append(RadialWindow(z, w, zeff.item()))
242242
return ws
243243

244244

glass/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
.. autofunction:: load_cls
1616
.. autofunction:: write_catalog
1717
18-
""" # noqa: D205, D400
18+
""" # noqa: D400
1919

2020
from __future__ import annotations
2121

0 commit comments

Comments
 (0)