mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
reordered imports to avoid circular imports
This commit is contained in:
parent
5d177a5ace
commit
84b055e15b
2 changed files with 4 additions and 4 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue