Import Volume Recontruction from IGT

Hello,

I am trying to import the logic of the volumereconstruction module from the SlicerIGT extension for use in my own python script but I get an error saying that the module is not found even though I installed the SlicerIGT extension with the extension manager.

When I try to import the VolumeReconstruction module into the Python Interactor, I get the following error:

import volumereconstruction
Traceback (most recent call):
File "<console>", line 1, in <module>
ModuleNotFoundError: No module named 'volumereconstruction'.

However, when I try with another module like Elastics (import Elastix in the python Interactor or in my Python script), it works correctly.

I have seen that the Elastix module is a Scripted module while the Volume reconstruction module is a loadable module, is that the source of the problem? If this is the case, is it possible (and how) to import a loadable module?

I am working with Slicer 4.11.20210226 on Ubuntu 20.04.

Thanks!

You could use the following code to implement the logic of Volume Reconstruction:
logic=slicer.modules.volumereconstruction.logic()