-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Division by zero error with SOSE data #83
Comments
Can you post the full stack trace? |
Looks the same as #16 |
ZeroDivisionError Traceback (most recent call last) File /srv/conda/envs/notebook/lib/python3.9/site-packages/xarray/core/dataarray.py:967, in DataArray.load(self, **kwargs) File /srv/conda/envs/notebook/lib/python3.9/site-packages/xarray/core/dataset.py:733, in Dataset.load(self, **kwargs) File /srv/conda/envs/notebook/lib/python3.9/site-packages/dask/base.py:600, in compute(traverse, optimize_graph, scheduler, get, *args, **kwargs) File /srv/conda/envs/notebook/lib/python3.9/site-packages/distributed/client.py:3052, in Client.get(self, dsk, keys, workers, allow_other_workers, resources, sync, asynchronous, direct, retries, priority, fifo_timeout, actors, **kwargs) File /srv/conda/envs/notebook/lib/python3.9/site-packages/distributed/client.py:2226, in Client.gather(self, futures, errors, direct, asynchronous) File /srv/conda/envs/notebook/lib/python3.9/site-packages/distributed/utils.py:339, in SyncMethodMixin.sync(self, func, asynchronous, callback_timeout, *args, **kwargs) File /srv/conda/envs/notebook/lib/python3.9/site-packages/distributed/utils.py:406, in sync(loop, func, callback_timeout, *args, **kwargs) File /srv/conda/envs/notebook/lib/python3.9/site-packages/distributed/utils.py:379, in sync..f() File /srv/conda/envs/notebook/lib/python3.9/site-packages/tornado/gen.py:762, in Runner.run(self) File /srv/conda/envs/notebook/lib/python3.9/site-packages/distributed/client.py:2089, in Client._gather(self, futures, errors, direct, local_worker) File /srv/conda/envs/notebook/lib/python3.9/site-packages/dask/optimization.py:990, in call() File /srv/conda/envs/notebook/lib/python3.9/site-packages/dask/core.py:149, in get() File /srv/conda/envs/notebook/lib/python3.9/site-packages/dask/core.py:119, in _execute_task() File /srv/conda/envs/notebook/lib/python3.9/site-packages/dask/core.py:119, in () File /srv/conda/envs/notebook/lib/python3.9/site-packages/dask/core.py:113, in _execute_task() File /srv/conda/envs/notebook/lib/python3.9/site-packages/dask/core.py:113, in () File /srv/conda/envs/notebook/lib/python3.9/site-packages/dask/core.py:119, in _execute_task() File /srv/conda/envs/notebook/lib/python3.9/site-packages/dask/utils.py:71, in apply() File /srv/conda/envs/notebook/lib/python3.9/site-packages/xhistogram/core.py:236, in _bincount() File /srv/conda/envs/notebook/lib/python3.9/site-packages/xhistogram/core.py:185, in _bincount_2d_vectorized() File /srv/conda/envs/notebook/lib/python3.9/site-packages/xhistogram/core.py:129, in _dispatch_bincount() File /srv/conda/envs/notebook/lib/python3.9/site-packages/xhistogram/core.py:117, in _determine_block_chunks() ZeroDivisionError: integer division or modulo by zero |
do you know if |
It's an xarray.DataArray |
So trying to rechunk salt data I have tried with |
+1 to fixing this. |
I'm going to close this as a duplicate of #16. To get around this bug you can use |
Hi, I am just rerunning old notebooks but am now getting an error I haven't gotten before with this code. Below I have attached a simplified version using xhistogram's
histogram
function on regular SOSE salt data and only specifyingsalt_bins
as an argument (no weights or dims specified for simplicity). Below is the error message. I have run this on regular ECCO data and it works with this template...not sure what's going on and would appreciate anyone shedding some light. Thanks!Error message:
The text was updated successfully, but these errors were encountered: