Skip to content

Commit

Permalink
Fix typo in dim_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokazama committed Feb 13, 2021
1 parent 8c68531 commit 5ad2c55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/NIfTI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,12 @@ function to_dim_info(dim_info::Tuple{Integer,Integer,Integer})
end

# Returns or sets dim_info as a tuple whose values are the frequency, phase, and slice dimensions
function dim_info(header::NIfTI1Header) = (header.dim_info & int8(3), (header.dim_info >> 2) & int8(3),
(header.dim_info >> 4) & int8(3))
function dim_info(header::NIfTI1Header)
return (
header.dim_info & int8(3),
(header.dim_info >> 2) & int8(3),
(header.dim_info >> 4) & int8(3)
)
end
function dim_info(header::NIfTI1Header, dim_info::Tuple{T, T, T}) where {T<:Integer}
header.dim_info = to_dim_info(dim_info)
Expand Down

0 comments on commit 5ad2c55

Please sign in to comment.