Skip to content

Commit 0f34eca

Browse files
committed
fix broken comparison
1 parent 7b48203 commit 0f34eca

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ ignore = [
9494
"B904",
9595
# ignore line-length violations
9696
"E501",
97+
# ignore equality comparisons for numpy arrays
98+
"E712",
9799
# ignore bare except
98100
"E722",
99101
# ignore ambiguous variable name

structuretoolkit/analyse/neighbors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def _estimate_width(
536536
"""
537537
if num_neighbors is None and cutoff_radius == np.inf:
538538
raise ValueError("Define either num_neighbors or cutoff_radius")
539-
if all(self._ref_structure.pbc is False):
539+
if all(self._ref_structure.pbc == False):
540540
return 0
541541
elif cutoff_radius != np.inf:
542542
return cutoff_radius

0 commit comments

Comments
 (0)