mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Hotfix for translations, rotations in Summary Python API
This commit is contained in:
parent
fd94158f77
commit
3eee7a7301
1 changed files with 3 additions and 3 deletions
|
|
@ -261,20 +261,20 @@ class Summary(object):
|
|||
cell = openmc.Cell(cell_id=cell_id, name=name)
|
||||
|
||||
if fill_type == 'universe':
|
||||
maps = self._f['geometry/cells'][key]['maps'][0]
|
||||
maps = self._f['geometry/cells'][key]['maps'].value
|
||||
|
||||
if maps > 0:
|
||||
offset = self._f['geometry/cells'][key]['offset'][...]
|
||||
cell.offsets = offset
|
||||
|
||||
translated = self._f['geometry/cells'][key]['translated'][0]
|
||||
translated = self._f['geometry/cells'][key]['translated'].value
|
||||
if translated:
|
||||
translation = \
|
||||
self._f['geometry/cells'][key]['translation'][...]
|
||||
translation = np.asarray(translation, dtype=np.float64)
|
||||
cell.translation = translation
|
||||
|
||||
rotated = self._f['geometry/cells'][key]['rotated'][0]
|
||||
rotated = self._f['geometry/cells'][key]['rotated'].value
|
||||
if rotated:
|
||||
rotation = \
|
||||
self._f['geometry/cells'][key]['rotation'][...]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue