mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Merge pull request #1968 from shimwell/fix_more_typos
removed unused imports
This commit is contained in:
commit
c597cd8294
12 changed files with 3 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
|
||||
from openmc import Material
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
from collections.abc import Mapping
|
||||
from ctypes import ArgumentError
|
||||
import os
|
||||
|
||||
import numpy as np
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
from math import pi
|
||||
from pathlib import Path
|
||||
from shutil import which
|
||||
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import numpy as np
|
||||
import openmc
|
||||
import openmc.examples
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
from random import random
|
||||
import subprocess
|
||||
|
||||
import h5py
|
||||
import numpy as np
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue