-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix KeyError: "None of [Index(['0_x', '1_x', '0_y', '1_y'], dtype='object')] are in the [columns]" in find_objects #384
base: main
Are you sure you want to change the base?
Conversation
…ject')] are in the [columns]" Added test
@joshua-gould Thanks for your PR! I was trying to reproduce the error you're fixing and found that it relates to #335. The following code test_labels = da.zeros((10, 10), dtype='int', chunks=(3, 3))
test_labels[0, 0] = 1
computed_result = dask_image.ndmeasure.find_objects(test_labels).compute() fails in the presence of Unsure how to proceed, there might be an error to reproduce upstream in |
I ran into this issue with find_objects too, and setting |
Thanks @jmuhlich for reporting this here! It seems that the following example (which is also included in the tests added in this PR): import dask.array as da
import dask_image.ndmeasure
test_labels = da.zeros((10, 10), dtype='int', chunks=(3, 3))
test_labels[0, 0] = 1
computed_result = dask_image.ndmeasure.find_objects(test_labels).compute(scheduler='single-threaded')
In this PR, @joshua-gould works around problems that occur when merging dask dataframes. Also here theres a mention of a pandas bug when merging dataframes. The error here might be related to that. I didn't have the time yet to find out what's going wrong in the merge. I think it'd be good to report the results of this upstream. Independent of upstream we should incorporate this workaround here I think.
@jmuhlich Does the code in this PR fix the problems you mention? |
Fixed up some conflicts introduced by a recent PR fixing CI: #393 Hope that is ok Please feel free to tweak further as needed |
No description provided.