Skip to content

Commit

Permalink
Merge pull request #1055 from CoffeaTeam/unpin-dask-update-dak
Browse files Browse the repository at this point in the history
build: unpin dask and skooch dask-awkward pin
  • Loading branch information
lgray committed Mar 6, 2024
2 parents 88c101a + a4d94ff commit 422f2d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ classifiers = [
dependencies = [
"awkward>=2.5.2",
"uproot>=5.3.0",
"dask[array]<2024.2.0,>=2023.4.0",
"dask-awkward>=2024.2.0",
"dask[array]>=2023.4.0",
"dask-awkward>=2024.3.0",
"dask-histogram>=2024.2.0",
"correctionlib>=2.3.3",
"pyarrow>=6.0.0",
Expand Down
4 changes: 3 additions & 1 deletion src/coffea/dataset_tools/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def get_steps(
filter_typename=no_filter,
filter_branch=partial(_remove_not_interpretable, emit_warning=False),
).layout.form.to_json()
dask.base.function_cache.popitem()
# the function cache needs to be popped if present to prevent memory growth
if hasattr(dask.base, "function_cache"):
dask.base.function_cache.popitem()

form_hash = hashlib.md5(form_str.encode("utf-8")).hexdigest()
form_json = compress_form(form_str)
Expand Down

0 comments on commit 422f2d4

Please sign in to comment.