Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pvillacorta committed Oct 16, 2024
1 parent 00a8d8a commit 6202b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KomaMRIBase/src/datatypes/Phantom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ julia> obj.ρ
"""
@with_kw mutable struct Phantom{T<:Real}
name::String = "spins"
x :: AbstractVector{T}
x::AbstractVector{T} = @isdefined(T) ? T[] : Float64[]
y::AbstractVector{T} = zeros(eltype(x), size(x))
z::AbstractVector{T} = zeros(eltype(x), size(x))
ρ::AbstractVector{T} = ones(eltype(x), size(x))
Expand Down

0 comments on commit 6202b2a

Please sign in to comment.