Skip to content

Commit

Permalink
create a local dict copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Emma Ai committed Aug 22, 2024
1 parent 595261f commit 09660a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ odc-dscache>=0.2.3
odc-stac @ git+https://github.com/opendatacube/odc-stac@69bdf64

# odc-stac is in PyPI
odc-stats[ows] @ git+https://github.com/opendatacube/odc-stats@85fe055
odc-stats[ows] @ git+https://github.com/opendatacube/odc-stats@595261f

# For ML
tflite-runtime
Expand Down
3 changes: 2 additions & 1 deletion odc/stats/_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def apply_numexpr_np(
Apply numexpr to numpy arrays
"""

local_dict = params
local_dict = {}
local_dict.update(params)
if data is not None:
local_dict.update(data)

Expand Down

0 comments on commit 09660a5

Please sign in to comment.