From 64d54c692da65a54493cb36119d9b0ebe753373a Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Wed, 27 Feb 2019 16:19:12 -0600 Subject: [PATCH] Adding inital value for plot level --- openmc/capi/plot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openmc/capi/plot.py b/openmc/capi/plot.py index dd95f3dd6e..3e3ec2e68f 100644 --- a/openmc/capi/plot.py +++ b/openmc/capi/plot.py @@ -70,6 +70,9 @@ class _Plot(Structure): ('pixels_', c_int*3), ('level_', c_int)] + def __init__(self): + self.level_ = -1 + @property def origin(self): out = [self.origin_.x, self.origin_.y, self.origin_.z]