Closed fjorka closed 2 years ago
Thank you for the detailed report, this is something that will need to be fixed inside the library. Pausing the execution of the script for just 1 second before calling converter.Finish seems to avoid the issue:
import time
[...]
time_infos = [datetime.today()]
time.sleep(1)
# sending metadata
converter.Finish(image_extents, parameters, time_infos, color_infos, adjust_color_range)
On pcs other than mine or for different image or block sizes it may be necessary to wait longer, but we had no reports of this issue for other image sizes.
According to this answer in stackoverflow, the ResourceWarning is due to the setup of the development environment.
It solved my problem - thank you!
Hi, I'm using PyImarisWriter following the example that you provided but I have troubles with saving metadata consistently. The longer the time series, the more probable that the attributes like 'HistogramMax' will not be saved for later time points (below you can see that what was saved for time point 9 is different than for time point 8). Any suggestions how to make it perform better?
The script below was used to save test numpy arrays:
Windows 10 PyImarisWriter 0.0.7
While using the writer I get warnings: sys:1: ResourceWarning: unclosed socket <zmq.Socket(zmq.PUSH) at 0x2db684769e8> ResourceWarning: Enable tracemalloc to get the object allocation traceback but they are displayed even if the file is saved correctly.