Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NaNs produced #10

Open
ialmodovar opened this issue Jun 15, 2020 · 1 comment
Open

NaNs produced #10

ialmodovar opened this issue Jun 15, 2020 · 1 comment

Comments

@ialmodovar
Copy link

You have addressed the underflow issue before and made the updated using version 0.2.2.1. I'm currently using pTFCE version 0.2.2.1 but I'm still getting NaNs. The files (at the bottom), which are of Zmaps and the mask, produce NaNs for 1470 voxels.

I did as follows,

library("oro.nifti")
library("pTFCE")
Z <- readNIfTI(fname="Pseudo-Zmap.nii.gz")
mask <- readNIfTI(fname="Pseudo-mask.nii.gz")
pp <- ptfce(-Z,mask)
* Estimating smoothness based on the data...
  |======================================================================| 100%
* Performing pTFCE...
  |======================================================================| 100%
There were 50 or more warnings (use warnings() to see the first 50)
> warnings()
1: In sqrt(d * (8 * s + d)) : NaNs produced
2: In sqrt(d * (8 * s + d)) : NaNs produced
3: In sqrt(d * (8 * s + d)) : NaNs produced
4: In sqrt(d * (8 * s + d)) : NaNs produced
5: In sqrt(d * (8 * s + d)) : NaNs produced
...

I was hoping you could help me with this?

Many thanks,

Israel

Pseudo-Zmap.nii.gz
Pseudo-mask.nii.gz

@maitra
Copy link

maitra commented Jun 15, 2020

I can verify these warnings also. Strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants