mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Avoid several Python warnings
This commit is contained in:
parent
3e769e05b4
commit
e1c47437bb
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue