Skip to content

Commit

Permalink
Clean up clean up everybody do your share
Browse files Browse the repository at this point in the history
  • Loading branch information
drewj-tp committed Oct 31, 2024
1 parent 3f83a88 commit 8d961e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion armi/physics/fuelCycle/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from unittest import TestCase, mock
from unittest import TestCase

import numpy as np

Expand Down
7 changes: 2 additions & 5 deletions armi/physics/fuelCycle/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.
"""Geometric agnostic routines that are useful for fuel cycle analysis."""

import contextlib
import typing

import numpy as np
Expand Down Expand Up @@ -74,9 +73,7 @@ def assemblyHasFuelPinBurnup(a: typing.Iterable["Block"]) -> bool:
# fuel block. Same for avoiding Block.getChildrenWithFlags.
return any(
b.hasFlags(Flags.FUEL)
and (
any(c.hasFlags(Flags.FUEL) and np.any(c.p.pinPercentBu) for c in b)
)
and (any(c.hasFlags(Flags.FUEL) and np.any(c.p.pinPercentBu) for c in b))
for b in a
)

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

0 comments on commit 8d961e2

Please sign in to comment.