Page MenuHomePhabricator

Remove redundancy in python to mitk Pixeltype determination
Closed, ResolvedPublic

Description

The pixeltype is highly templated and thus to be able to set it from a python string, we need a huge if ... else statement.
To make things worse, this if ... else statement is repeated in several location. Remove as much as possible from these redundancies.

Event Timeline

User wirkert has pushed new remote branch:

bug-19491-remove-pixeltype-determination-redundancies

[240504]: Merge branch 'bug-19491-remove-pixeltype-determination-redundancies'

Merged commits:

2016-01-13 16:41:20 Sebastian Wirkert [79d86b]
Create one function to remove the two seperate determinations of the pixeltype.