Move 'import lxml' to third-party block of imports (#2803)

This commit is contained in:
Paul Romano 2023-12-13 08:11:32 -06:00 committed by GitHub
parent 552adc005c
commit 85c963e223
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 21 additions and 25 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,5 @@
import re
import lxml.etree as ET
import openmc.checkvalue as cv

View file

@ -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

View file

@ -1,4 +1,5 @@
from numbers import Integral, Real
import lxml.etree as ET
import openmc.checkvalue as cv

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,5 @@
from numbers import Integral
import lxml.etree as ET
import openmc.checkvalue as cv

View file

@ -1,5 +1,6 @@
from collections.abc import Iterable
from numbers import Real
import lxml.etree as ET
import openmc.checkvalue as cv

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,6 +1,6 @@
from math import sqrt
import lxml.etree as ET
import lxml.etree as ET
import openmc
import pytest

View file

@ -1,5 +1,4 @@
import lxml.etree as ET
import numpy as np
import openmc
import pytest