Skip to content

Commit d412ec1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f9a5a8b commit d412ec1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def test_forward(self) -> None:
331331
for rr in ret_lower:
332332
if rr is not None:
333333
subret.append(rr[kk])
334-
if len(subret):
334+
if subret:
335335
for ii, rr in enumerate(subret[1:]):
336336
if kk == "expanded_force":
337337
# use mapping to scatter sum the forces

0 commit comments

Comments
 (0)