-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Pressing "Clear comparison" in Profiler while its running stops it and raises a TypeError #6444
Comments
Thanks for reporting; I was able to reproduce this. If it works, it works,, though perhaps there's a cleaner fix, perhaps one step up the chain in the function called by the "clear comparison" button, as this seems a bit kludgy to the untrained eye. In any case, we'd be glad to review a PR with this fix; you could probably mock a test but probably better to just run a "real world" one with qtbot, running on a test file and clicking the appropriate buttons. |
yes, i am one with untrained eyes(at least for now) and know little about qtbot/qt. so maybe i wont be capable to fix this "in a cleaner way". i dont really understand what u mean by "real world". |
No worries! You can just go ahead and submit a PR, and if there's a cleaner way I'm sure @ccordoba12 or someone will point it out during a review. I didn't know anything about qt/qtbot either going in, but the basics were easier than they seemed; you can look at the other tests to get a sense of how to do it. I could see two approaches: Either way, you'd presumably want to create two test files in the
and the other with arbitrary content to load as comparison data,
and create a new profiler object/window, as presumably the other tests do. Then, you would need to do four actions:
These can be accomplished either by calling the relevant methods for each one directly, or with doing
Yes, exactly, and just automating it with method calls or qtbot.
Oh; could you explain further? |
@bcolsen, @jnsebgosselin what are your thoughts on how this should flow? We could just disable the "clear comparison" while it is running? or should we not stop the process? |
I didn't even realize that you could make comparisons. I thought that you could just save and load data to see it again later. Maybe Sorry side tracked. As for this issue I don't see why I shouldn't be able to clear a comparison, load data or save data while the profiler is running. From a usability stand point it makes sense. If we have technical limitations for doing these things while the profiler is running then disabling buttons is the way to go. I also don't think that a user needs to clear a comparison, load data or save data while the profiler is running. |
Thanks for the input and the suggestion! We need to work a bit on the profiler to update with other panes. This one is a bit orphaned. :-) |
I think it is already done if you keep running the profiler |
Description
when profiler is running somecode(any code) click "clear comparison".
the code stop running and spyder pump up an error as following:
i found this maybe caused by this:
so i edit it:
and now "clear comparison" wont stop the code running and no error will pump up.
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: