Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 21, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

@sanguinariojoe
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants