You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Similar to #91, reading and writing out NA or NaN values are not handled well in antsImage objects, which is a major issue for most analyses, as NA values are implicitly turned to 0 with no warning or message. Related to muschellij2/extrantsr#14 and jonclayden/RNifti#21
Describe the bug
Similar to #91, reading and writing out
NA
orNaN
values are not handled well inantsImage
objects, which is a major issue for most analyses, asNA
values are implicitly turned to0
with no warning or message. Related to muschellij2/extrantsr#14 and jonclayden/RNifti#21To Reproduce
Adding in NA
NO CLONING
Adding in NA gives na error
As the data type is integer, you need to be explicit about NA
but we see it turns to NaN
but again as we didn’t clone, it changes
binary_mask
!The average user may not know this
NaN is fine
NaN is fine
WIth Cloning
Adding in NA gives na error
As the data type is integer, you need to be explicit about NA
but we see it turns to NaN
but again as did clone, it doesn’t changes
binary_mask
!NaN is fine
NaN is fine
Try with Double
We will clone as we have shown above that’s the way to do it.
Adding in NA gives na error
As the data type is integer, you need to be explicit about NA
does NOT turn to NaN with double - good to document!
NaN is fine
NaN is fine
Issues with Writing NA in binary data
After reading back in, no NA/NaN values are there
But RNifti seems fine:
as does neurobase
Trying Int Data
I know I keep the names of
binary
and such, but this is really integer dataAdding in NA
NO CLONING
Adding in NA gives na error
As the data type is integer, you need to be explicit about NA
but we see it turns to NaN
NaN is fine
NaN is fine
WIth Cloning
Adding in NA gives na error
As the data type is integer, you need to be explicit about NA
but we see it turns to NaN
NaN is fine
NaN is fine
Try with Double
We will clone
Adding in NA gives na error
As the data type is integer, you need to be explicit about NA
does NOT turn to NaN with double - good to document!
NaN is fine
NaN is fine
Issues with Writing NA in binary data
After reading back in, no NA/NaN values are there
But RNifti seems fine:
as does neurobase
Created on 2020-09-04 by the reprex package (v0.3.0)
Session info
Session Info
Please include output from
R
of:The text was updated successfully, but these errors were encountered: