mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Fix reading of reference_uvw during from_xml
This commit is contained in:
parent
588e7bbab0
commit
eb1dc015e5
1 changed files with 6 additions and 6 deletions
|
|
@ -148,9 +148,9 @@ class PolarAzimuthal(UnitSphere):
|
|||
|
||||
"""
|
||||
mu_phi = cls()
|
||||
params = get_text(elem, 'parameters')
|
||||
if params is not None:
|
||||
mu_phi.reference_uvw = [float(x) for x in params.split()]
|
||||
uvw = get_text(elem, 'reference_uvw')
|
||||
if uvw is not None:
|
||||
mu_phi.reference_uvw = [float(x) for x in uvw.split()]
|
||||
mu_phi.mu = Univariate.from_xml_element(elem.find('mu'))
|
||||
mu_phi.phi = Univariate.from_xml_element(elem.find('phi'))
|
||||
return mu_phi
|
||||
|
|
@ -242,9 +242,9 @@ class Monodirectional(UnitSphere):
|
|||
|
||||
"""
|
||||
monodirectional = cls()
|
||||
params = get_text(elem, 'parameters')
|
||||
if params is not None:
|
||||
monodirectional.reference_uvw = [float(x) for x in params.split()]
|
||||
uvw = get_text(elem, 'reference_uvw')
|
||||
if uvw is not None:
|
||||
monodirectional.reference_uvw = [float(x) for x in uvw.split()]
|
||||
return monodirectional
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue