Skip to content

Commit

Permalink
save GE corrected phase with steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbinian Eckstein committed Sep 4, 2024
1 parent 488822e commit f20c88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ext/ClearswiApp/caller.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ function CLEARSWI.clearswi_main(args; version="1.3.3")
end

mkpath(writedir)
if !isnothing(settings["writesteps"]) mkpath(settings["writesteps"]) end

saveconfiguration(writedir, settings, args, version)

mag = readmag(settings["magnitude"]; mmap=!settings["no-mmap"])
phase = readphase(settings["phase"]; mmap=(!settings["no-mmap"] && !settings["fix-ge-phase"]), rescale=!settings["no-phase-rescale"], fix_ge=settings["fix-ge-phase"])
hdr = CLEARSWI.MriResearchTools.header(mag)
phase = readphase(settings["phase"]; mmap=(!settings["no-mmap"] && !settings["fix-ge-phase"]), rescale=!settings["no-phase-rescale"], fix_ge=settings["fix-ge-phase"])
settings["fix-ge-phase"] && savenii(collect(phase), "corrected_GE_phase", settings["writesteps"], hdr)
neco = size(mag, 4)

## Echoes for unwrapping
Expand Down
1 change: 0 additions & 1 deletion src/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ julia> swi = calculateSWI(data, options);
```
"""
function calculateSWI(data::Data, options::Options=Options())
if !isnothing(options.writesteps) mkpath(options.writesteps) end
getswimag(data, options) .* getswiphase(data, options)
end

Expand Down

2 comments on commit f20c88e

@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/114559

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 v1.3.3 -m "<description of version>" f20c88ea38ef6e6ca056ed667a6ce3fe8562ea12
git push origin v1.3.3

Please sign in to comment.