Skip to content

Commit a257ca4

Browse files
paulromanochurch89
authored andcommitted
Move 'import lxml' to third-party block of imports (openmc-dev#2803)
1 parent b6a2800 commit a257ca4

22 files changed

Lines changed: 21 additions & 25 deletions

‎openmc/cell.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from collections.abc import Iterable
22
from math import cos, sin, pi
33
from numbers import Real
4-
import lxml.etree as ET
54

5+
import lxml.etree as ET
66
import numpy as np
77
from uncertainties import UFloat
88

‎openmc/data/library.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import os
2-
import lxml.etree as ET
32
import pathlib
43

54
import h5py
5+
import lxml.etree as ET
66

77
import openmc
88
from openmc._xml import clean_indentation, reorder_attributes

‎openmc/deplete/nuclide.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from collections import namedtuple, defaultdict
99
from warnings import warn
1010
from numbers import Real
11-
import lxml.etree as ET
1211

12+
import lxml.etree as ET
1313
import numpy as np
1414

1515
from openmc.checkvalue import check_type

‎openmc/element.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import re
2+
23
import lxml.etree as ET
34

45
import openmc.checkvalue as cv

‎openmc/filter.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import hashlib
44
from itertools import product
55
from numbers import Real, Integral
6-
import lxml.etree as ET
76
import warnings
87

8+
import lxml.etree as ET
99
import numpy as np
1010
import pandas as pd
1111

‎openmc/filter_expansion.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from numbers import Integral, Real
2+
23
import lxml.etree as ET
34

45
import openmc.checkvalue as cv

‎openmc/lattice.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from math import sqrt, floor
55
from numbers import Real
66
import types
7-
import lxml.etree as ET
87

8+
import lxml.etree as ET
99
import numpy as np
1010

1111
import openmc

‎openmc/material.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import typing # imported separately as py3.8 requires typing.Iterable
99
import warnings
1010
from typing import Optional, List, Union, Dict
11-
import lxml.etree as ET
1211

12+
import lxml.etree as ET
1313
import numpy as np
1414
import h5py
1515

‎openmc/model/model.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
from numbers import Integral
88
from tempfile import NamedTemporaryFile
99
import warnings
10-
import lxml.etree as ET
1110
from typing import Optional, Dict
1211

1312
import h5py
13+
import lxml.etree as ET
1414

1515
import openmc
1616
import openmc._xml as xml

‎openmc/plots.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from collections.abc import Iterable, Mapping
22
from numbers import Integral, Real
33
from pathlib import Path
4-
import lxml.etree as ET
54
from typing import Optional
65

76
import h5py
7+
import lxml.etree as ET
88
import numpy as np
99

1010
import openmc

0 commit comments

Comments
 (0)