Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024 12 placate ruff #98

Merged
merged 2 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions boxtree/traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1892,9 +1892,11 @@ def __call__(self, queue, tree, wait_for=None, debug=False,
:class:`FMMTraversalInfo` and *event* is a :class:`pyopencl.Event`
for dependency management.
"""
if _from_sep_smaller_min_nsources_cumul is None:
from_sep_smaller_min_nsources_cumul = _from_sep_smaller_min_nsources_cumul

if from_sep_smaller_min_nsources_cumul is None:
# default to old no-threshold behavior
_from_sep_smaller_min_nsources_cumul = 0
from_sep_smaller_min_nsources_cumul = 0

if not tree._is_pruned:
raise ValueError("tree must be pruned for traversal generation")
Expand Down Expand Up @@ -2085,7 +2087,7 @@ def extract_level_start_box_nrs(box_list, wait_for):
tree.box_target_bounding_box_max.data,
tree.box_source_counts_cumul]
if tree.targets_have_extent else []),
_from_sep_smaller_min_nsources_cumul,
from_sep_smaller_min_nsources_cumul,
)

from_sep_smaller_wait_for = []
Expand Down
2 changes: 1 addition & 1 deletion doc/upload-docs.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#! /bin/sh

rsync --verbose --archive --delete _build/html/* doc-upload:doc/boxtree
rsync --verbose --archive --delete _build/html/ doc-upload:doc/boxtree
Loading