DREAM3D icon indicating copy to clipboard operation
DREAM3D copied to clipboard

Change of data type in container does not reset selected container

Open fbudin69500 opened this issue 9 years ago • 2 comments

If a data container is selected in a filter that has some requirements specified with DataArraySelectionFilterParameter::RequirementType such a a pixel type (e.g. int8), and the container content is changed (e.g. image file reader input changed), the filter that selects the data container is not reset, and therefore may be run with the wrong type of data.

Example:

  1. Image Reader loads a float image
  2. Float image is accepted in Processing filter and user selects data container containing float image
  3. Input of Image Reader is changed to a short image
  4. Filter should not accept short image
  5. The data container is still selected in the Processing filter. It should be reset.

fbudin69500 avatar Jan 25 '17 16:01 fbudin69500

It should still be selected but a preflight error should also appear for the user. Does this happen in your case or does the preflight silently pass?

imikejackson avatar Jan 25 '17 16:01 imikejackson

Preflight silently passes. Maybe I am missing a call in mypreflight. I will right an example that fails, but not my top priority except if you think that is really important. I reported it to not forget.

fbudin69500 avatar Jan 25 '17 18:01 fbudin69500