Merge pull request #1968 from shimwell/fix_more_typos

removed unused imports
This commit is contained in:
Paul Romano 2022-02-14 07:02:48 -06:00 committed by GitHub
commit c597cd8294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 3 additions and 25 deletions

View file

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

View file

@ -10,12 +10,11 @@ from xml.etree import ElementTree as ET
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

View file

@ -2,10 +2,8 @@ from difflib import unified_diff
import filecmp
import glob
import hashlib
from optparse import OptionParser
import os
import shutil
import sys
import numpy as np
import openmc

View file

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

View file

@ -4,8 +4,6 @@ Modifies and resets environment variable OPENMC_CROSS_SECTIONS
to a custom file with new depletion_chain node
"""
from os import environ
from unittest import mock
from pathlib import Path
import pytest

View file

@ -1,8 +1,5 @@
#!/usr/bin/env python
import os
import sys
import pytest
from openmc import Material

View file

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

View file

@ -1,5 +1,4 @@
from collections.abc import Mapping
from ctypes import ArgumentError
import os
import numpy as np

View file

@ -1,6 +1,5 @@
from math import pi
from pathlib import Path
from shutil import which
import numpy as np
import pytest

View file

@ -1,4 +1,3 @@
import numpy as np
import openmc
import openmc.examples
import pytest

View file

@ -1,5 +1,4 @@
from random import random
import subprocess
import h5py
import numpy as np

View file

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