Skip to content

Commit

Permalink
Fixed invalid datatype issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dipterix committed Jan 8, 2025
1 parent cd37f31 commit 145917d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ieegio
Title: File IO for Intracranial Electroencephalography
Version: 0.0.2.9007
Version: 0.0.2.9008
Language: en-US
Encoding: UTF-8
Authors@R:
Expand Down
2 changes: 2 additions & 0 deletions R/nifti.R
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,8 @@ io_write_nii.niftiImage <- function(x, con, ...) {
if(identical(as.double(x$datatype), 64.0)) {
# using NIFTI_TYPE_FLOAT32 instead of NIFTI_TYPE_FLOAT64
datatype <- "float"
} else {
datatype <- "auto"
}
}
if(!length(version)) {
Expand Down

0 comments on commit 145917d

Please sign in to comment.