mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Removed Cel.fill property in place of Cell.fill_type
This commit is contained in:
parent
02d6b99d78
commit
d193a1eb0b
1 changed files with 9 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue