Closed dorianps closed 5 years ago
Btw, I can see you check for missing input later: https://github.com/ANTsX/ANTsRCore/blob/master/R/antsAverageImages.R#L48-L49
But how is R accepting the function call with no default?
Never mind, I just learned about missing
. The segfault might be from other reasons.
Describe the bug Not sure how tests have passed on travis, but
antsAverageImages
seems to have a newweights
argument with no default (here). I am getting strange segfaults and I am not sure exactly why, but the default example ofantsAverageImage
which calls the function without theweights
argument should at least work and I don't see how can it work without defining weights. @muschellij2 can you pre-set the weights in the argument definition?To Reproduce Steps to reproduce the behavior:
Log:
Expected behavior No segfault, keep old behavior and accept images without weights for backward compatibility of existing scripts.
Screenshots None
Desktop (please complete the following information):
Additional context None