reordered imports to avoid circular imports

This commit is contained in:
Jonathan Shimwell 2022-10-26 20:24:23 +01:00
parent 5d177a5ace
commit 84b055e15b
2 changed files with 4 additions and 4 deletions

View file

@ -10,11 +10,11 @@ from openmc.material import *
from openmc.plots import *
from openmc.region import *
from openmc.volume import *
from openmc.source import *
from openmc.weight_windows import *
from openmc.settings import *
from openmc.surface import *
from openmc.universe import *
from openmc.source import *
from openmc.settings import *
from openmc.lattice import *
from openmc.filter import *
from openmc.filter_expansion import *

View file

@ -84,7 +84,7 @@ class Source:
parameters: Optional[str] = None,
strength: float = 1.0,
particle: str = 'neutron',
domains: Optional[Union[openmc.Cell, openmc.Material, 'openmc.Universe']] = None
domains: Optional[Union[openmc.Cell, openmc.Material, openmc.Universe]] = None
):
self._space = None
self._angle = None
@ -257,7 +257,7 @@ class Source:
return element
@classmethod
def from_xml_element(cls, elem: ET.Element) -> 'openmc.Source':
def from_xml_element(cls, elem: ET.Element) -> openmc.Source:
"""Generate source from an XML element
Parameters