File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- from unittest import TestCase , mock
15
+ from unittest import TestCase
16
16
17
17
import numpy as np
18
18
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
"""Geometric agnostic routines that are useful for fuel cycle analysis."""
15
15
16
- import contextlib
17
16
import typing
18
17
19
18
import numpy as np
@@ -74,9 +73,7 @@ def assemblyHasFuelPinBurnup(a: typing.Iterable["Block"]) -> bool:
74
73
# fuel block. Same for avoiding Block.getChildrenWithFlags.
75
74
return any (
76
75
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 ))
80
77
for b in a
81
78
)
82
79
@@ -144,4 +141,4 @@ def maxBurnupBlock(a: typing.Iterable["Block"]) -> "Block":
144
141
maxBlock = b
145
142
if maxBlock is not None :
146
143
return maxBlock
147
- raise ValueError (f "No blocks with burnup found" )
144
+ raise ValueError ("No blocks with burnup found" )
You can’t perform that action at this time.
0 commit comments