-
Notifications
You must be signed in to change notification settings - Fork 168
Removing repeatdt #1387
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
Removing repeatdt #1387
Conversation
…t supported anymore
|
I should have commented on this sooner, but have been at a meeting. The real problems with issues #1316 and # 1340 is that the zarr "obs" chunking is set by the number of particles released in the first time step when particles are released. If the number of particles in each release is large, there is no efficiency problem. But in cases like my students, in which the releases are governed by the actual introduction of surface drifters in the global surface drifter project, the actual number of drifters in the first release are very small. He does not use repeatdt, but still has this problem. The issues in #1316 and # 1340 are very similar. I do not have this problem despite heavy use of repeatdt, because I launch at all locations in the first release time, and then in many subsequent. While your second workaround would work for me, it is a bit clumsy. So removing repeatdt would not really solve the problem, either in these issues or in general. The real solution is to decouple the chunk size from the initial number of particles released. I may be wrong -- if so what am I missing? Jamie |
|
p.s. I am sorry to comment and run, but starting Monday I am out of touch for two weeks. I know I have promised you a patch, but have been too busy with my global parcels runs and other things. By the end of the summer. |
|
Thanks for responding, @JamiePringle, these are very useful comments. The problem is that we can't set the I agree that removing In the meantime, I covert this PR to draft so that at least we know it won't be implemented soon |
|
Closing this PR, as #1430 is a better implementation/fix |
Since the
repeatdtoption inParticleSetcreation can lead to very poor performance withzarr-output (see e.g. the discussions in #1316 and #1340), we may want to think about completely removing this option from Parcels starting in the next version (v2.5.0?)Note that
repeatdtis not strictly needed. Easy workarounds are:np.tile(). I added a code snippet in the 'tutorial_delaystart' to explain this:particleset.execute() within afor-loop and manually add new particles usingparticleset.add()`