Skip to content

Commit 8d961e2

Browse files
committed
Clean up clean up everybody do your share
1 parent 3f83a88 commit 8d961e2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

armi/physics/fuelCycle/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from unittest import TestCase, mock
15+
from unittest import TestCase
1616

1717
import numpy as np
1818

armi/physics/fuelCycle/utils.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414
"""Geometric agnostic routines that are useful for fuel cycle analysis."""
1515

16-
import contextlib
1716
import typing
1817

1918
import numpy as np
@@ -74,9 +73,7 @@ def assemblyHasFuelPinBurnup(a: typing.Iterable["Block"]) -> bool:
7473
# fuel block. Same for avoiding Block.getChildrenWithFlags.
7574
return any(
7675
b.hasFlags(Flags.FUEL)
77-
and (
78-
any(c.hasFlags(Flags.FUEL) and np.any(c.p.pinPercentBu) for c in b)
79-
)
76+
and (any(c.hasFlags(Flags.FUEL) and np.any(c.p.pinPercentBu) for c in b))
8077
for b in a
8178
)
8279

@@ -144,4 +141,4 @@ def maxBurnupBlock(a: typing.Iterable["Block"]) -> "Block":
144141
maxBlock = b
145142
if maxBlock is not None:
146143
return maxBlock
147-
raise ValueError(f"No blocks with burnup found")
144+
raise ValueError("No blocks with burnup found")

0 commit comments

Comments
 (0)