Closed nielsboecker closed 5 years ago
Resolving this issue is one of the sub-goals of #45
I fixed this for #45 in 8bae93894fce874042db63141f49a54c0e6b4a19.
@UdomkarnBoonyaprasert could you confirm that my fix makes sense, and that you ran it and nothing broke, so we still get the same output?
I take your silence as a yes.
Description
The way the code is currently mixing functionality, where one component does multiple things, has led to strange and unwanted dependencies.
For example, in the adominal organ pipeline, the
compNifty2Numpy
performs a resampling, even though it is not needed. It has already performed bycompDicom2Nifty
, and the only reason that it runs again, is that it is "hard wired" intocompNifty2Numpy
.While this is only a small performance issue, as all computations have already been done, it is bad design and needs to be fixed.