Skip to content

Commit

Permalink
Changed numpy empty to dask empty for meta handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dwest77a committed Aug 23, 2024
1 parent f9e50af commit a90e0bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CFAPyX/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _set_cfa_options(

def _assemble_array(self, dsk, array_name, dask_chunks):

meta = np.empty(self.shape, dtype=self.dtype)
meta = da.empty(self.shape, dtype=self.dtype)
if not hasattr(self, 'use_active'):
darr = da.Array(dsk, array_name, chunks=dask_chunks, dtype=self.dtype, meta=meta)
return darr
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
requires-python=">=3.7"
name="CFAPyX"
version="2024.9.0"
version="2024.9.1"
dynamic = ["dependencies"]
authors = [{name = "Daniel Westwood", email = "[email protected]"}]
readme="README.md"
Expand Down

0 comments on commit a90e0bd

Please sign in to comment.