Skip to content

Commit

Permalink
Merge pull request #1968 from shimwell/fix_more_typos
Browse files Browse the repository at this point in the history
removed unused imports
  • Loading branch information
paulromano authored Feb 14, 2022
2 parents c8639e1 + 6257c61 commit c597cd8
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 25 deletions.
2 changes: 0 additions & 2 deletions openmc/plots.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from collections.abc import Iterable, Mapping
from numbers import Real, Integral
from pathlib import Path
import shutil
import subprocess
from xml.etree import ElementTree as ET

import numpy as np
Expand Down
3 changes: 1 addition & 2 deletions openmc/tallies.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
import h5py
import numpy as np
import pandas as pd
from scipy.misc import derivative
import scipy.sparse as sps

import openmc
import openmc.checkvalue as cv
from ._xml import clean_indentation, reorder_attributes, get_text
from ._xml import clean_indentation, reorder_attributes
from .mixin import IDManagerMixin
from .mesh import MeshBase

Expand Down
2 changes: 0 additions & 2 deletions tests/testing_harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
import filecmp
import glob
import hashlib
from optparse import OptionParser
import os
import shutil
import sys

import numpy as np
import openmc
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_deplete_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def test_get_set_chain_br(simple_chain):


def test_capture_branch_infer_ground():
"""Ensure the ground state is infered if not given"""
"""Ensure the ground state is inferred if not given"""
# Make up a metastable capture transition:
infer_br = {"Xe135": {"Xe136_m1": 0.5}}
set_br = {"Xe135": {"Xe136": 0.5, "Xe136_m1": 0.5}}
Expand Down
2 changes: 0 additions & 2 deletions tests/unit_tests/test_deplete_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
to a custom file with new depletion_chain node
"""

from os import environ
from unittest import mock
from pathlib import Path

import pytest
Expand Down
3 changes: 0 additions & 3 deletions tests/unit_tests/test_element_wo.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env python

import os
import sys

import pytest

from openmc import Material
Expand Down
5 changes: 0 additions & 5 deletions tests/unit_tests/test_lattice_discretization.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
from math import sqrt
import xml.etree.ElementTree as ET

import openmc
import pytest

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

Expand Down
1 change: 0 additions & 1 deletion tests/unit_tests/test_lib.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections.abc import Mapping
from ctypes import ArgumentError
import os

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion tests/unit_tests/test_model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from math import pi
from pathlib import Path
from shutil import which

import numpy as np
import pytest
Expand Down
1 change: 0 additions & 1 deletion tests/unit_tests/test_plots.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import numpy as np
import openmc
import openmc.examples
import pytest
Expand Down
1 change: 0 additions & 1 deletion tests/unit_tests/test_source_file.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from random import random
import subprocess

import h5py
import numpy as np
Expand Down
5 changes: 1 addition & 4 deletions tests/unit_tests/test_transfer_volumes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Regression tests for openmc.deplete.Results.transfer_volumes method.
"""
"""Regression tests for openmc.deplete.Results.transfer_volumes method."""

from pytest import approx
import openmc
Expand Down

0 comments on commit c597cd8

Please sign in to comment.