Skip to content

Commit

Permalink
Add chunks argument when create dask array from static bg (#139) (#140)
Browse files Browse the repository at this point in the history
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
  • Loading branch information
hakonanes committed Jan 22, 2020
1 parent 988368e commit 8cdcdee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kikuchipy/signals/ebsd.py
Expand Up @@ -403,7 +403,8 @@ def static_background_correction(
md = self.metadata
ebsd_node = kp.util.io.metadata_nodes(sem=False)
static_bg = da.from_array(
md.get_item(ebsd_node + ".static_background")
md.get_item(ebsd_node + ".static_background"),
chunks="auto",
)
except AttributeError:
raise OSError(
Expand Down

0 comments on commit 8cdcdee

Please sign in to comment.