-
Notifications
You must be signed in to change notification settings - Fork 1
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
Clear analysis outputs when sampler is re-run #140
Conversation
Question about this. Does it clear it on the start of sampling or end? I think it could be useful to still view the old plots while the new sampling is running. Worth considering. |
I made the condition for updating to be when |
Actually, I think clearing this at the start is the only robust option, because of this sequence of events:
|
We could just disable running analysis.py if sampler is running. We already disable it for when no sampling is completed. |
@magland my latest commit here makes the necessary changes to only clear the output when it is finished and to prevent the user running mid-sample |
This all looks good to me. |
I've no objections to the implementation, but I am a little on the fence about the right functionality. I appreciate that we might want to see the old plots/analysis during resampling, but it seems like it might be frustrating for that to all just disappear once the new sampling completes? (Which I believe we'd currently do, because it would be misleading to show stale analysis when new samples have come in) I think the right behavior probably depends on how long we expect most sampling operations to take, no? |
Correct, this is the basic thing the PR intends to prevent. When they disappear would probably be equally frustrating for different users, but leaving them around while sampling seems more conservative. Of course, since we don't provide an "oops, undo that!" button, it's possible for you to be looking at the plots from your last run and realize you wish you had kept them, but that's a more general issue I think |
Opinions on merging as an improvement over the status quo, even if we may revisit? |
I'm in favor. |
This prevents having plots, etc that show draws from a previous run being left around in the UI