You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In running protocols where some tmp folders/files are deleted, it can raise the following exception:
Exception in Tkinter callback
Traceback (most recent call last):
File "/software/scipion/conda/lib/python3.8/tkinter/__init__.py", line 1892, in __call__
return self.func(*args)
File "/software/scipion/conda/lib/python3.8/tkinter/__init__.py", line 814, in callit
func(*args)
File "/software/scipion/source/core/scipion-pyworkflow/pyworkflow/gui/canvas.py", line 290, in <lambda>
lambda: self._showTooltip(event.x_root,
File "/software/scipion/source/core/scipion-pyworkflow/pyworkflow/gui/canvas.py", line 122, in _showTooltip
self._tooltipCallback(tw, item)
File "/software/scipion/source/core/scipion-pyworkflow/pyworkflow/gui/project/viewprotocols.py", line 1340, in _runItemTooltip
tm += 'Folder size: %s\n' % pwutils.prettySize(prot.getSize())
File "/software/scipion/source/core/scipion-pyworkflow/pyworkflow/protocol/protocol.py", line 2330, in getSize
self._size = getFileSize(self.getPath())
File "/software/scipion/source/core/scipion-pyworkflow/pyworkflow/utils/path.py", line 460, in getFileSize
total_size += os.path.getsize(fp)
File "/software/scipion/conda/lib/python3.8/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: 'Runs/008023_ProtRelionExtractParticles/tmp/mic_009214.mrcs'
Moreover, for some large datasets (e.g. tens of thousands of movies) this can take a long time to compute and freeze the whole GUI.
I propose to either avoid that computation or have some sort of cache value that prevents from running that many IO queries every time one hover over a protocol box.
The text was updated successfully, but these errors were encountered:
I think it is cached . But I. This case it can't even cache it. We shoul
tolerate errors there.
El jue., 7 dic. 2023 21:13, Jose Miguel de la Rosa Trevin <
***@***.***> escribió:
Apart from being cached, might be a good idea to do the updated in a background thread. This will prevent blocking the GUI, even in the case where the size needs to be re-calculated.
In running protocols where some tmp folders/files are deleted, it can raise the following exception:
Moreover, for some large datasets (e.g. tens of thousands of movies) this can take a long time to compute and freeze the whole GUI.
I propose to either avoid that computation or have some sort of cache value that prevents from running that many IO queries every time one hover over a protocol box.
The text was updated successfully, but these errors were encountered: