Describe the bug
In python, when we instantiate anatomist after an aims.read, anatomist windows hung up and are black. It doesn't happen if anatomist is instantiated before the aims.read.
To Reproduce
To reproduce the bug (the following code produces black windows and they hung):
import anatomist.direct.api as ana
from soma import aims
import numpy as np
from soma.qt_gui.qt_backend import Qt
if __name__ == '__main__':
vol = aims.read(path/to/nifti/file)
a = ana.Anatomist()
win = a.createWindow('3D')
qapp = Qt.QApplication.instance()
qapp.exec()
The code that works as expected
The following code works:
import anatomist.direct.api as ana
from soma import aims
import numpy as np
from soma.qt_gui.qt_backend import Qt
if __name__ == '__main__':
a = ana.Anatomist()
vol = aims.read(path/to/nifti/file)
win = a.createWindow('3D')
qapp = Qt.QApplication.instance()
qapp.exec()
Describe the bug In python, when we instantiate anatomist after an aims.read, anatomist windows hung up and are black. It doesn't happen if anatomist is instantiated before the aims.read.
To Reproduce
To reproduce the bug (the following code produces black windows and they hung):
The code that works as expected
The following code works:
Environment: