Skip to content

Commit

Permalink
test-fix: reduce iterations in a way that works for rts-qsm as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbinian Eckstein committed Mar 21, 2024
1 parent 1e450ba commit e816752
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/qsm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ phase_nii = readphase(fn_phase)
mag_nii = readmag(fn_mag)
TEs = 4:4:12

vsz = header(phase_nii).pixdim[2:4]
vsz = header(phase_nii).pixdim[2:4] .* 10 # reduces required iterations for testing
phase = Float32.(phase_nii)
mag = Float32.(mag_nii)
mask = qsm_mask_filled(phase[:,:,:,1])
Expand All @@ -23,13 +23,13 @@ args = (phase, mag, mask, TEs, vsz)


# QSM multi-echo postaverage (inverse-variance-weighted averaging)
qsm_laplacian_average = qsm_average(args...; B0, iterations=100)
qsm_laplacian_average = qsm_average(args...; B0)
# QSM.jl
# qsm_laplacian_average = qsm_average(args...; B0, unwrapping=laplacianunwrap)
# qsm_romeo_average = qsm_average(args...; B0, unwrapping=romeo)

# QSM multi-echo phase combine
qsm_laplacian_combined = qsm_laplacian_combine(args...; B0, iterations=100)
qsm_romeo_B0_map = qsm_romeo_B0(args...; B0, iterations=100)
qsm_laplacian_combined = qsm_laplacian_combine(args...; B0)
qsm_romeo_B0_map = qsm_romeo_B0(args...; B0)

end

2 comments on commit e816752

@korbinian90
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/103341

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v3.1.3 -m "<description of version>" e816752665fb424754f06a10e2c5e7da46b6f020
git push origin v3.1.3

Please sign in to comment.