I found another memory leak. When a container is added to the data browser, it must be removed after the use. If it isn't, of course the script will crash with multiple iterations. The problem is that if you use the function to get the added containers. the script will crash even if you remove the container from the data browser. The error message is exactly the same as the other problem. It is also for gwy files. This is the code that raises it. while True: main_container = gwy.gwy_file_load("test.gwy")...
Yes, the latest snapshot work perfectly! Can I use it without problems?
I have noticed that it seems to depend on the number of data fields in the file. In the one that I am attaching, it even crashes after around 215 loops, as it has 5 data fields. 400 loops was the number for a file with 2 data fields.
You are right, the issue is not in the RAM memory amount raising. The problem does not occur when opening standard ".gwy" files, but with ".lext" files. This are acquired from an Olympus confocal LSM. The problem raises without memory leak after around 400 loops. I used this code: import sys sys.path.append(r'C:\Program Files (x86)\Gwyddion\bin') import gwy while True: c = gwy.gwy_file_load("test.lext") The Exception thrown is not Python's. The error when opening the file from Windows PowerShell...
You are right, the issue is not in the RAM memory amount raising. The problem does not occur when opening standard ".gwy" files, but with ".lext" files. This are acquired from an Olympus confocal LSM. The problem raises without memory leak after around 400 loops. I used this code: import sys sys.path.append(r'C:\Program Files (x86)\Gwyddion\bin') import gwy while True: c = gwy.gwy_file_load("test.lext") The Exception thrown is not Python's. The error when opening the file from Windows PowerShell...
Hi, I am writing a script for batch processing of files. The problem is that no file is closed even when using gwy_app_data_remove(container). This means that there is a limit in the amount of files that can be processed. Is there a better way to clean up the memory? The files are opened with gwy.gwy_file_load("path", gwy.RUN_NONINTERACTIVE)
Ok, by the way I am interested in the processing without resampling/interpolation, without any masking. Could you link me the source code download?
I am sorry but I was not clear in the second question. My question was on the procedure behind the tool, as there are different ways to calculate the PSDF. I just need to know the process for reference. So: what calculations does the tool do when processing the images? Is the following what the tool does? - line by line (rows or columns): - 1DACF - 1DFFT - averaging all the lines. Thank you for your help!