Skip to content

Commit

Permalink
Fixing order and removing lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gsahonero committed Feb 6, 2025
1 parent 38e021a commit dcfb734
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions KomaMRIBase/src/datatypes/Phantom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -584,13 +584,7 @@ function default_brain_tissue_properties(labels, tissue_properties = Dict())
tissues_labels = Dict("CSF" => 23, "DURA" => 232, "FAT1" => 93, "FAT2" => 209, "GM" => 46, "MARROW" => 255, "MUSCLE" => 116, "SKIN/MUSCLE" => 139, "SKULL" => 162, "VESSELS" => 185, "WM" => 70)
data_properties = zeros(Nproperties, size(labels)...)
for i=1:Nproperties
for (label, tissue) in tissues_labels
data_properties[i, :, :, :] += (labels .== label) * tissue_properties[tissue][i]
end
end

for i=1:Nproperties
for (label, tissue) in zip(tissue_labels, tissue_texts)
for (tissue, label) in tissues_labels
data_properties[i, :, :, :] += (labels .== label) * tissue_properties[tissue][i]
end
end
Expand Down

0 comments on commit dcfb734

Please sign in to comment.