From 17c96c497c33fd19309d4ec1f7dee52d7bd83b3a Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 10 May 2016 10:37:07 -0500 Subject: [PATCH] Add xyz default for openmc.stats.Point constructor --- openmc/stats/multivariate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmc/stats/multivariate.py b/openmc/stats/multivariate.py index 4ce34a0712..e4eadd7aa4 100644 --- a/openmc/stats/multivariate.py +++ b/openmc/stats/multivariate.py @@ -328,8 +328,8 @@ class Point(Spatial): Parameters ---------- - xyz : Iterable of float - Cartesian coordinates of location + xyz : Iterable of float, optional + Cartesian coordinates of location. Defaults to (0., 0., 0.). Attributes ---------- @@ -338,7 +338,7 @@ class Point(Spatial): """ - def __init__(self, xyz): + def __init__(self, xyz=(0., 0., 0.)): super(Point, self).__init__() self.xyz = xyz