-
Notifications
You must be signed in to change notification settings - Fork 0
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
Potential bug: TaskLoader does not run when patching and using 'Gapfill' samlping strategy #9
Comments
Could you maybe send your code (privately) so I can see whether this is relating to the datasets used? I haven't been able to replicate this behaviour so far, though using a different dataset I expect. Have you run this code with a debugger? I'd like to check 1. Is it really hanging indefinitely, or just taking a long time, and if so 2. where is the freezing happening, is it actually in |
Thanks @davidwilby I will send a private gist now. I haven't run this code with a debugger, I have just used my trusted print statements all over the place again. The print statements prove the code is hanging indefinitely/ taking a very long time when generating tasks, but I guess the debugger is needed to identify where in the actual DeepSensor codebase the code is hanging indefinitely? |
In running your example @MartinSJRogers , I've tracked the hanging behaviour down to this section of deepsensor/deepsensor/data/loader.py Lines 1367 to 1395 in 23733df
In this section target_mask = added_mask & ~curr_mask
if isinstance(target_var, xr.Dataset):
keep_searching = np.all(target_mask.to_array().data == False)
else:
keep_searching = np.all(target_mask.data == False)
if keep_searching:
continue # No target points -- use a different `added_mask` |
Description
The Taskloader function seems to freeze when asked to generate patched functions using the gapfill sampling strategy:
Reproduction steps
This first example runs fine
But if you call this example, nothing happens:
Version
Patchwise_train fork, monotonic errors branch,
Screenshots

OS
Windows
The text was updated successfully, but these errors were encountered: