Closed mdholbrook closed 5 years ago
I added a box in the GUI to display image information and error messages. The server should send the following information:
I've coded these values to be stored as the following:
I've passed this metadata to the "df" dictionary. When I run the GUI I get a KeyError for "show2", however. I think this is from the most recent code you added here.
I'll take a look at it and upload a fix. You've merged your changes?
Yup changes should be merged
I've fixed the "show2" error and added some better error handling in #63.
@abg28 , I've found a way to periodically ping the server status. We can create a separate class which will query the server for a separate status update as seen here: https://riptutorial.com/pyqt5/example/29500/basic-pyqt-progress-bar
I will code this up for the GUI. The one question that remains is if the server can respond while the images are being processed.
EDIT: even if the server does not respond while it is working, this may give enough information work work will (e.i. no update -> not ready)
It appears to me that the GUI stalls while the server runs through its endpoints, preventing any kind of overloading. For example, try selecting foosball.jpg from the TestImages folder, and processing it with the "Histogram" option (this takes extra time because the histogram method must flatten color images before they can be processed). I could also be interpreting the stalling completely wrong.
I keep getting this error: "A key is missing from the user data dictionary."
I'm starting to think that the data isn't being sent. I can't get print statements to work on the server.
It would be nice to have some feedback on the GUI side for what's happening (generally) on the server. Let me know when you find out if the POST request is blocking or not. Then we can start thinking about how to let the user know when their files have been downloaded.