sgkit icon indicating copy to clipboard operation
sgkit copied to clipboard

hwe dtype inference

Open shy218 opened this issue 4 years ago • 1 comments

When I run the HWE function on the simulated dataset or my own dataset, I get

Traceback (most recent call last): File "", line 1, in File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/sgkit/stats/hwe.py", line 214, in hardy_weinberg_test p = da.map_blocks(hardy_weinberg_p_value_vec_jit, *obs) File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/dask/array/core.py", line 683, in map_blocks dtype = apply_infer_dtype(func, args, original_kwargs, "map_blocks") File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/dask/array/core.py", line 408, in apply_infer_dtype raise ValueError(msg) ValueError: dtype inference failed in map_blocks.

I use Dask 2021.04.0, xarray 0.17.0, sgkit 0.20a1

shy218 avatar Apr 25 '21 09:04 shy218

Please share the code you used to create the data and call the function.

eric-czech avatar Apr 25 '21 12:04 eric-czech

Closing old issue

tomwhite avatar Jan 04 '23 16:01 tomwhite