Python Module Logic Class

Hello! We are working on testing our module, but it only sets the image to the FA.nrrd because of the ScriptedLoadableModuleTest. Screen Shot 2020-07-07 at 8.57.32 AM

As you can see, our code uses a pre-placed fiducial point to create a segment around it(called lumbar in this case). Then it sets the parameters for the local threshold function, but the function doesn’t complete. What I mean by that is it sets the parameters but doesn’t control-click/run the function. We think this is because of our logic function.

Does anyone know how to alter the run function in the Scripted Loadable Module Logic to actually run your own program? Is that where we put in:

effect.self().apply(ijkPoints)

If so, how do we run all the functions in our main class?

Thanks!

1 Like