Skip to content

Commit

Permalink
Merge pull request #152 from dask-contrib/blank
Browse files Browse the repository at this point in the history
[fix] import dak if it exists
  • Loading branch information
martindurant authored Sep 19, 2024
2 parents fb37983 + 6f1b277 commit 8923899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Empty file added afile
Empty file.
4 changes: 3 additions & 1 deletion src/dask_histogram/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,12 @@ def _get_optimization_function():
# running this optimization even in cases where it's unncessary
# because if no AwkwardInputLayers from dask-awkward are
# detected then the original graph is returned unchanged.
if dask.config.get("awkward", default=False):
try:
from dask_awkward.lib.optimize import all_optimizations

return all_optimizations
except (ImportError, ModuleNotFoundError):
pass
return optimize


Expand Down

0 comments on commit 8923899

Please sign in to comment.