Skip to content

Commit

Permalink
KomaMRI v0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cncastillo committed Sep 30, 2024
1 parent 1708855 commit ed6d9c7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion KomaMRIBase/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "KomaMRIBase"
uuid = "d0bc0b20-b151-4d03-b2a4-6ca51751cb9c"
authors = ["Carlos Castillo Passi <[email protected]>"]
version = "0.9.0-DEV"
version = "0.9.0"

[deps]
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
Expand Down
2 changes: 1 addition & 1 deletion KomaMRICore/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "KomaMRICore"
uuid = "4baa4f4d-2ae9-40db-8331-a7d1080e3f4e"
authors = ["Carlos Castillo Passi <[email protected]>"]
version = "0.9.0-DEV"
version = "0.9.0"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
2 changes: 1 addition & 1 deletion KomaMRIFiles/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "KomaMRIFiles"
uuid = "fcf631a6-1c7e-4e88-9e64-b8888386d9dc"
authors = ["Carlos Castillo Passi <[email protected]>"]
version = "0.9.0-DEV"
version = "0.9.0"

[deps]
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
Expand Down
2 changes: 1 addition & 1 deletion KomaMRIPlots/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "KomaMRIPlots"
uuid = "76db0263-63f3-4d26-bb9a-5dba378db904"
authors = ["Carlos Castillo Passi <[email protected]>"]
version = "0.9.0-DEV"
version = "0.9.0"

[deps]
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "KomaMRI"
uuid = "6a340f8b-2cdf-4c04-99be-4953d9b66d0a"
authors = ["Carlos Castillo Passi <[email protected]>"]
version = "0.9.0-DEV"
version = "0.9.0"

[deps]
AssetRegistry = "bf4720bc-e11a-5d0c-854e-bdca1663c893"
Expand Down
6 changes: 3 additions & 3 deletions examples/3.tutorials/lit-06-DiffusionMotion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using PlotlyJS # hide
using Random # hide

# The purpose of this tutorial is to showcase the simulation of diffusion-related effects.
# For this, we are going to define a `Path <: Motion` to simulate the Brownian motion of spins.
# For this, we are going to define a [`Path`](@ref) motion to simulate the Brownian motion of spins.
# This is not the most efficient way of simulating diffusion, but it is a good way to understand the phenomenon.
# In particular, we will going to simulate isotropic diffusion, characterized by the Apparent Diffusion Coefficient (ADC).

Expand Down Expand Up @@ -34,7 +34,7 @@ D = 2e-9 # Diffusion Coefficient of water in m^2/s
T = 100e-3 # Duration of the motion
Nt = 100 # Number of time steps
Δt = T / (Nt - 1) # Time sep
Δr = sqrt(2 * D * Δt) # √ Mean square displacement
Δr = sqrt(2 * D * Δt) # √ Mean square displacement

# Random walk is defined as the cumulative sum of random displacements:
rng = MersenneTwister(1234) # Setting up the random seed
Expand Down Expand Up @@ -117,7 +117,7 @@ function bvalue(seq)
block, axis = 2, 1 # Gx from second block
G = seq.GR[axis, block].A
δ = seq.GR[axis, block].T
Δ = dur(seq[1:2]) # Because there is no space in between
Δ = dur(seq[2:3]) # Because there are no gaps
b = (2π * γ * G * δ)^2 *- δ/3)
return b * 1e-6
end
Expand Down

0 comments on commit ed6d9c7

Please sign in to comment.