aflux / neutrino

A light, expandable and full featured image analysis tool for research
10 stars 1 forks source link

Python scripting: Cleanly exit Neutrino? #30

Open sfeister opened 10 years ago

sfeister commented 10 years ago

Hello!

Do either of you know how to cleanly exit a Neutrino instance created in Python? I especially am interested in completely clearing the memory.

Here is what I have tried:

# Below, n is the Neutrino instance, and q is Qt instance (per neutrino python wiki).
n.destroy()     # Closes main window, but leaves open other windows (such as Wavelet), and does not clear memory
n.close()   # Does nothing
q.quit()    # Does nothing noticable
del n       # Closes Neutrino, if I remember correctly, but does not clear memory and can cause faults

Thanks in advance!