Skip to content

Commit a5329ea

Browse files
committed
DOC: what the heck to do about the not-deterministic stoppage
1 parent f603fbc commit a5329ea

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/antsRegistration.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ antsRegistration <- function(
358358

359359
# Perform Repro checking if set_ants_deterministic is True
360360
if( getOption( "ants.deterministic", TRUE ) && !grepl( "Repro", typeofTransform ) ) {
361-
stop( typeofTransform, " is not deterministic/reproducible.")
361+
stop( typeofTransform, " is not deterministic/reproducible. set setANTsDeterministic(FALSE) to proceed." )
362362
}
363363

364364
initx <- initialTransform

vignettes/ANTsR.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ vignette: >
1616
library(knitr)
1717
library(ANTsR)
1818
runLongExamples<-FALSE
19+
setANTsDeterministic(FALSE)
1920
```
2021

2122
> "A small leak will sink a great ship."
@@ -255,7 +256,8 @@ In registration, we assume the image can be mapped to some canonical shape or
255256
example, i.e. an atlas. Or to another individual. ANTs*R* provides a
256257
simple wrapper for SyN image registration [@Tustison2013],
257258
```{r syn,echo=TRUE,message=FALSE,warnings=FALSE}
258-
mi<-antsImageRead( getANTsRData("r64") ,2)
259+
fi<-antsImageRead( getANTsRData("r16") )
260+
mi<-antsImageRead( getANTsRData("r64") )
259261
mytx<-antsRegistration(fixed=fi , moving=mi ,
260262
typeofTransform = c('SyN'))
261263
regresult<-iMath(mytx$warpedmovout,"Normalize")

0 commit comments

Comments
 (0)