Fixed minor issues with OpenCG surface coefficient properties in compatibility module

This commit is contained in:
Will Boyd 2015-10-03 14:53:55 -04:00
parent 5f3f58f3ab
commit 81c00627f9
2 changed files with 2 additions and 2 deletions

View file

@ -220,7 +220,7 @@ def get_opencg_surface(openmc_surface):
opencg_surface = opencg.Plane(surface_id, name, boundary, A, B, C, D)
elif openmc_surface.type == 'x-plane':
x0 = openmc_surface.y0
x0 = openmc_surface.x0
opencg_surface = opencg.XPlane(surface_id, name, boundary, x0)
elif openmc_surface.type == 'y-plane':

View file

@ -275,7 +275,7 @@ class XPlane(Plane):
@property
def x0(self):
return self.coeff['x0']
return self.coeffs['x0']
@x0.setter
def x0(self, x0):