Skip to content

Commit c597cd8

Browse files
authored
Merge pull request #1968 from shimwell/fix_more_typos
removed unused imports
2 parents c8639e1 + 6257c61 commit c597cd8

12 files changed

+3
-25
lines changed

openmc/plots.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from collections.abc import Iterable, Mapping
22
from numbers import Real, Integral
33
from pathlib import Path
4-
import shutil
5-
import subprocess
64
from xml.etree import ElementTree as ET
75

86
import numpy as np

openmc/tallies.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
import h5py
1111
import numpy as np
1212
import pandas as pd
13-
from scipy.misc import derivative
1413
import scipy.sparse as sps
1514

1615
import openmc
1716
import openmc.checkvalue as cv
18-
from ._xml import clean_indentation, reorder_attributes, get_text
17+
from ._xml import clean_indentation, reorder_attributes
1918
from .mixin import IDManagerMixin
2019
from .mesh import MeshBase
2120

tests/testing_harness.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
import filecmp
33
import glob
44
import hashlib
5-
from optparse import OptionParser
65
import os
76
import shutil
8-
import sys
97

108
import numpy as np
119
import openmc

tests/unit_tests/test_deplete_chain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def test_get_set_chain_br(simple_chain):
289289

290290

291291
def test_capture_branch_infer_ground():
292-
"""Ensure the ground state is infered if not given"""
292+
"""Ensure the ground state is inferred if not given"""
293293
# Make up a metastable capture transition:
294294
infer_br = {"Xe135": {"Xe136_m1": 0.5}}
295295
set_br = {"Xe135": {"Xe136": 0.5, "Xe136_m1": 0.5}}

tests/unit_tests/test_deplete_operator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
to a custom file with new depletion_chain node
55
"""
66

7-
from os import environ
8-
from unittest import mock
97
from pathlib import Path
108

119
import pytest

tests/unit_tests/test_element_wo.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/usr/bin/env python
22

3-
import os
4-
import sys
5-
63
import pytest
74

85
from openmc import Material

tests/unit_tests/test_lattice_discretization.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
from math import sqrt
2-
import xml.etree.ElementTree as ET
3-
4-
import openmc
5-
import pytest
61

72
from tests.unit_tests.test_lattice import zr, pincell1, pincell2, rlat2
83

tests/unit_tests/test_lib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from collections.abc import Mapping
2-
from ctypes import ArgumentError
32
import os
43

54
import numpy as np

tests/unit_tests/test_model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from math import pi
22
from pathlib import Path
3-
from shutil import which
43

54
import numpy as np
65
import pytest

tests/unit_tests/test_plots.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import numpy as np
21
import openmc
32
import openmc.examples
43
import pytest

0 commit comments

Comments
 (0)