mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Move 'import lxml' to third-party block of imports (#2803)
This commit is contained in:
parent
552adc005c
commit
85c963e223
22 changed files with 21 additions and 25 deletions
|
|
@ -1,8 +1,8 @@
|
|||
from collections.abc import Iterable
|
||||
from math import cos, sin, pi
|
||||
from numbers import Real
|
||||
import lxml.etree as ET
|
||||
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
from uncertainties import UFloat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import os
|
||||
import lxml.etree as ET
|
||||
import pathlib
|
||||
|
||||
import h5py
|
||||
import lxml.etree as ET
|
||||
|
||||
import openmc
|
||||
from openmc._xml import clean_indentation, reorder_attributes
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ from collections.abc import Mapping
|
|||
from collections import namedtuple, defaultdict
|
||||
from warnings import warn
|
||||
from numbers import Real
|
||||
import lxml.etree as ET
|
||||
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
|
||||
from openmc.checkvalue import check_type
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import re
|
||||
|
||||
import lxml.etree as ET
|
||||
|
||||
import openmc.checkvalue as cv
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ from collections.abc import Iterable
|
|||
import hashlib
|
||||
from itertools import product
|
||||
from numbers import Real, Integral
|
||||
import lxml.etree as ET
|
||||
import warnings
|
||||
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
from numbers import Integral, Real
|
||||
|
||||
import lxml.etree as ET
|
||||
|
||||
import openmc.checkvalue as cv
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ from copy import deepcopy
|
|||
from math import sqrt, floor
|
||||
from numbers import Real
|
||||
import types
|
||||
import lxml.etree as ET
|
||||
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
|
||||
import openmc
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import re
|
|||
import typing # imported separately as py3.8 requires typing.Iterable
|
||||
import warnings
|
||||
from typing import Optional, List, Union, Dict
|
||||
import lxml.etree as ET
|
||||
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
import h5py
|
||||
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ from pathlib import Path
|
|||
from numbers import Integral
|
||||
from tempfile import NamedTemporaryFile
|
||||
import warnings
|
||||
import lxml.etree as ET
|
||||
from typing import Optional, Dict
|
||||
|
||||
import h5py
|
||||
import lxml.etree as ET
|
||||
|
||||
import openmc
|
||||
import openmc._xml as xml
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
from collections.abc import Iterable, Mapping
|
||||
from numbers import Integral, Real
|
||||
from pathlib import Path
|
||||
import lxml.etree as ET
|
||||
from typing import Optional
|
||||
|
||||
import h5py
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
|
||||
import openmc
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import os
|
||||
from collections.abc import Iterable, Mapping, MutableSequence
|
||||
from enum import Enum
|
||||
import itertools
|
||||
|
|
@ -7,11 +6,11 @@ from numbers import Integral, Real
|
|||
from pathlib import Path
|
||||
import typing # required to prevent typing.Union namespace overwriting Union
|
||||
from typing import Optional
|
||||
|
||||
import lxml.etree as ET
|
||||
|
||||
import openmc.checkvalue as cv
|
||||
from openmc.stats.multivariate import MeshSpatial
|
||||
|
||||
from . import (RegularMesh, SourceBase, MeshSource, IndependentSource,
|
||||
VolumeCalculation, WeightWindows, WeightWindowGenerator)
|
||||
from ._xml import clean_indentation, get_text, reorder_attributes
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import warnings
|
|||
import typing # imported separately as py3.8 requires typing.Iterable
|
||||
# also required to prevent typing.Union namespace overwriting Union
|
||||
from typing import Optional, Sequence
|
||||
import lxml.etree as ET
|
||||
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
import h5py
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ from collections.abc import Iterable
|
|||
from copy import deepcopy
|
||||
import math
|
||||
from numbers import Real
|
||||
import lxml.etree as ET
|
||||
from warnings import warn, catch_warnings, simplefilter
|
||||
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
|
||||
from .checkvalue import check_type, check_value, check_length, check_greater_than
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
from numbers import Integral
|
||||
|
||||
import lxml.etree as ET
|
||||
|
||||
import openmc.checkvalue as cv
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
from collections.abc import Iterable
|
||||
from numbers import Real
|
||||
|
||||
import lxml.etree as ET
|
||||
|
||||
import openmc.checkvalue as cv
|
||||
|
|
|
|||
|
|
@ -1,24 +1,20 @@
|
|||
import math
|
||||
import typing
|
||||
from abc import ABC, abstractmethod
|
||||
from collections.abc import Iterable
|
||||
from copy import deepcopy
|
||||
from numbers import Integral, Real
|
||||
from pathlib import Path
|
||||
from tempfile import TemporaryDirectory
|
||||
import lxml.etree as ET
|
||||
import warnings
|
||||
|
||||
import h5py
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
|
||||
import openmc
|
||||
import openmc.checkvalue as cv
|
||||
|
||||
from ._xml import get_text
|
||||
from .checkvalue import check_type, check_value
|
||||
from .mixin import IDManagerMixin
|
||||
from .plots import _SVG_COLORS
|
||||
from .surface import _BOUNDARY_TYPES
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from collections.abc import Iterable, Mapping
|
||||
from numbers import Real, Integral
|
||||
import lxml.etree as ET
|
||||
import warnings
|
||||
|
||||
import h5py
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import h5py
|
||||
from uncertainties import ufloat
|
||||
|
||||
import openmc
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ from openmc.filter import _PARTICLES
|
|||
from openmc.mesh import MeshBase, RectilinearMesh, CylindricalMesh, SphericalMesh, UnstructuredMesh
|
||||
import openmc.checkvalue as cv
|
||||
from openmc.checkvalue import PathLike
|
||||
|
||||
from ._xml import get_text, clean_indentation
|
||||
from .mixin import IDManagerMixin
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
import lxml.etree as ET
|
||||
|
||||
import numpy as np
|
||||
from uncertainties import ufloat
|
||||
import openmc
|
||||
import pytest
|
||||
|
||||
|
||||
from tests.unit_tests import assert_unbounded
|
||||
from openmc.data import atomic_mass, AVOGADRO
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
"""Tests for the openmc.deplete.Nuclide class."""
|
||||
|
||||
import lxml.etree as ET
|
||||
import copy
|
||||
|
||||
import lxml.etree as ET
|
||||
import numpy as np
|
||||
import pytest
|
||||
from openmc.deplete import nuclide
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from math import sqrt
|
||||
import lxml.etree as ET
|
||||
|
||||
import lxml.etree as ET
|
||||
import openmc
|
||||
import pytest
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import lxml.etree as ET
|
||||
|
||||
import numpy as np
|
||||
import openmc
|
||||
import pytest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue