mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Changes in stats/multivariate.py from PullRequest Inc. review
This commit is contained in:
parent
d5b54e8cb5
commit
1091c59457
1 changed files with 2 additions and 12 deletions
|
|
@ -85,7 +85,7 @@ class PolarAzimuthal(UnitSphere):
|
|||
|
||||
"""
|
||||
|
||||
def __init__(self, mu=None, phi=None, reference_uvw=[0., 0., 1.]):
|
||||
def __init__(self, mu=None, phi=None, reference_uvw=(0., 0., 1.)):
|
||||
super().__init__(reference_uvw)
|
||||
if mu is not None:
|
||||
self.mu = mu
|
||||
|
|
@ -157,9 +157,7 @@ class PolarAzimuthal(UnitSphere):
|
|||
|
||||
|
||||
class Isotropic(UnitSphere):
|
||||
"""Isotropic angular distribution.
|
||||
|
||||
"""
|
||||
"""Isotropic angular distribution."""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
|
@ -258,9 +256,6 @@ class Spatial(ABC):
|
|||
distributions of source sites.
|
||||
|
||||
"""
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def to_xml_element(self):
|
||||
return ''
|
||||
|
|
@ -308,7 +303,6 @@ class CartesianIndependent(Spatial):
|
|||
"""
|
||||
|
||||
def __init__(self, x, y, z):
|
||||
super().__init__()
|
||||
self.x = x
|
||||
self.y = y
|
||||
self.z = z
|
||||
|
|
@ -416,7 +410,6 @@ class SphericalIndependent(Spatial):
|
|||
"""
|
||||
|
||||
def __init__(self, r, theta, phi, origin=(0.0, 0.0, 0.0)):
|
||||
super().__init__()
|
||||
self.r = r
|
||||
self.theta = theta
|
||||
self.phi = phi
|
||||
|
|
@ -536,7 +529,6 @@ class CylindricalIndependent(Spatial):
|
|||
"""
|
||||
|
||||
def __init__(self, r, phi, z, origin=(0.0, 0.0, 0.0)):
|
||||
super().__init__()
|
||||
self.r = r
|
||||
self.phi = phi
|
||||
self.z = z
|
||||
|
|
@ -645,7 +637,6 @@ class Box(Spatial):
|
|||
|
||||
|
||||
def __init__(self, lower_left, upper_right, only_fissionable=False):
|
||||
super().__init__()
|
||||
self.lower_left = lower_left
|
||||
self.upper_right = upper_right
|
||||
self.only_fissionable = only_fissionable
|
||||
|
|
@ -739,7 +730,6 @@ class Point(Spatial):
|
|||
"""
|
||||
|
||||
def __init__(self, xyz=(0., 0., 0.)):
|
||||
super().__init__()
|
||||
self.xyz = xyz
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue