Avoid several Python warnings

This commit is contained in:
Paul Romano 2021-04-26 09:22:45 -05:00
parent 3e769e05b4
commit e1c47437bb
4 changed files with 4 additions and 4 deletions

View file

@ -580,7 +580,7 @@ class Sum(EqualityMixin):
class Regions1D(EqualityMixin):
"""Piecewise composition of multiple functions.
r"""Piecewise composition of multiple functions.
This class allows you to create a callable object which is composed
of multiple other callable objects, each applying to a specific interval

View file

@ -995,7 +995,7 @@ class WindowedMultipole(EqualityMixin):
out.windows = group['windows'][()]
out.broaden_poly = group['broaden_poly'][...].astype(np.bool)
out.broaden_poly = group['broaden_poly'][...].astype(bool)
if out.broaden_poly.shape[0] != out.windows.shape[0]:
raise ValueError(err.format('broaden_poly', 'windows'))

View file

@ -2060,7 +2060,7 @@ class XSdata:
Np = self.num_polar
Na = self.num_azimuthal
g_out_bounds = np.zeros((Np, Na, G, 2), dtype=np.int)
g_out_bounds = np.zeros((Np, Na, G, 2), dtype=int)
for p in range(Np):
for a in range(Na):
for g_in in range(G):

View file

@ -493,7 +493,7 @@ class SphericalIndependent(Spatial):
return cls(r, theta, phi, origin=origin)
class CylindricalIndependent(Spatial):
"""Spatial distribution represented in cylindrical coordinates.
r"""Spatial distribution represented in cylindrical coordinates.
This distribution allows one to specify coordinates whose :math:`r`,
:math:`\phi`, and :math:`z` components are sampled independently from