I am facing some issues when generating a full wafer layout multiple times with Nazca. It seems that the memory consumption per run is quite high (about 500 MB) and deleting the variable space is not sufficient to free the RAM. Regenerating the layout a handful of times quickly consumes all the available memory.
The only solution I have found is to fully restart the Python kernel. However, frequently doing this becomes a time consuming procedure. I am using Spyder IDE under Windows 10.
I would like to ask whether there is another way of freeing up the memory used during each layout generation, and, more in general, if there is any guideline you would recommend in order to minimize the employed RAM.
Unfortunately ticking the ‘Remove all variable before execution’ box does not solve the issue, and neither I could solve it with magic commands. Deleting the Nazca arrays frees a bit of memory, but leaves the majority accumulating.
Indeed I reuse the same iPython console, i.e. I just rerun my script in Spyder. the only way I can free my RAM is by manually closing the console every few run.