When running grid indexing in Ewoks, we would like to provide feedback to the user on the process advancement.
The grid indexing prints some useful information with print or through sys.stderr:
|
sys.stderr.write(" % 6.2f%% Position %d %d %d"%(i/ni,t_x, t_y, t_z)+ |
One of the strategy we considered was to somehow capture this text output to display it in a text box to the user.
Unfortunately, stderr is difficult to capture so we could imagine replacing those by logging calls instead ?
Some recipes already exist for logging in a multiprocessing context
Of course, we would be happy to know if you have another idea on how to provide feedback to the user.
Thanks!
When running grid indexing in Ewoks, we would like to provide feedback to the user on the process advancement.
The grid indexing prints some useful information with
printor throughsys.stderr:ImageD11/ImageD11/grid_index_parallel.py
Line 177 in 41cd63a
One of the strategy we considered was to somehow capture this text output to display it in a text box to the user.
Unfortunately,
stderris difficult to capture so we could imagine replacing those byloggingcalls instead ?Some recipes already exist for logging in a multiprocessing context
Of course, we would be happy to know if you have another idea on how to provide feedback to the user.
Thanks!