We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b48203 commit 0f34ecaCopy full SHA for 0f34eca
pyproject.toml
@@ -94,6 +94,8 @@ ignore = [
94
"B904",
95
# ignore line-length violations
96
"E501",
97
+ # ignore equality comparisons for numpy arrays
98
+ "E712",
99
# ignore bare except
100
"E722",
101
# ignore ambiguous variable name
structuretoolkit/analyse/neighbors.py
@@ -536,7 +536,7 @@ def _estimate_width(
536
"""
537
if num_neighbors is None and cutoff_radius == np.inf:
538
raise ValueError("Define either num_neighbors or cutoff_radius")
539
- if all(self._ref_structure.pbc is False):
+ if all(self._ref_structure.pbc == False):
540
return 0
541
elif cutoff_radius != np.inf:
542
return cutoff_radius
0 commit comments