devide icon indicating copy to clipboard operation
devide copied to clipboard

ModuleManagerException: Faulty transfer_output (set_input on module dvm2yob2 (doubleThreshold)): argument 1: method requires a VTK object

Open GoogleCodeExporter opened this issue 9 years ago • 3 comments

What steps will reproduce the problem?
1.add double_threshhold_view as in the video
2.presse execute
3.error appeares

What is the expected output? What do you see instead?
just a error: ModuleManagerException: Faulty transfer_output (set_input on 
module dvm2yob2 (doubleThreshold)): argument 1: method requires a VTK object 


What version of the product are you using? On what operating system?
DeVIDE 12.2.7   windows 7 Prof/64bit

Please provide any additional information below.


see log

Original issue reported on code.google.com by [email protected] on 4 Jul 2014 at 11:56

GoogleCodeExporter avatar Mar 21 '15 21:03 GoogleCodeExporter

This looks like you connected up an incompatible reader to the input of the 
doubleThreshold. Could you explain in more detail what you did here?

Original comment by cpbotha on 30 Jul 2014 at 6:28

GoogleCodeExporter avatar Mar 21 '15 21:03 GoogleCodeExporter

I have the same problem connecting DICOM reader output to Double threshold input


Original comment by [email protected] on 18 Mar 2015 at 12:46

GoogleCodeExporter avatar Mar 21 '15 21:03 GoogleCodeExporter

Same problem here... DICOM reader and double threshold...

I debugged a bit, and it seems that the module is loading set_input function with a wide variety of inputStream things... Nones, Meta data, ...

For the moment I worked around the issue replacing set_input with the following function:

    def set_input(self, idx, inputStream):
        try:
            self._imageThreshold.SetInput(inputStream)
        except TypeError:
            return
        # get scalar bounds
        minv, maxv = inputStream.GetScalarRange()

However, Right now the tool is not able to properly handle exceptions caused by wrong input types.

Similar work around can be practised with other tools

sanguinariojoe avatar Feb 16 '16 21:02 sanguinariojoe