Removed Cel.fill property in place of Cell.fill_type

This commit is contained in:
Will Boyd 2015-10-03 14:33:28 -04:00
parent 02d6b99d78
commit d193a1eb0b

View file

@ -85,8 +85,15 @@ class Cell(object):
return self._fill
@property
def type(self):
return self._fill
def fill_type(self):
if isinstance(self.fill, openmc.Material):
return 'material'
elif isinstance(self.fill, openmc.Universe):
return 'universe'
elif isinstance(self.fill, openmc.Lattice):
return 'lattice'
else:
return None
@property
def surfaces(self):