Changes in stats/multivariate.py from PullRequest Inc. review

This commit is contained in:
Paul Romano 2020-04-01 13:17:18 -05:00
parent d5b54e8cb5
commit 1091c59457

View file

@ -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