-
Notifications
You must be signed in to change notification settings - Fork 23
Scanner object considering multiple coils #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
d84cb1e
to
be1d62b
Compare
…dd a getprperty to the Scanner.limits.symbol values.
…mpact] and another small changes
…sens for RFCoilSensDefinedAtPhantomPositions
KomaMRIBase/src/datatypes/Scanner.jl
Outdated
@@ -108,6 +108,14 @@ function getproperty(sys::Scanner, key::Symbol) | |||
end | |||
end | |||
|
|||
function Base.setproperty!(sys::Scanner, key::Symbol, value) | |||
if key in fieldnames(HardwareLimits) | |||
setfield!(sys.limits, key, convert(Float64, value)) # Convert value to the correct type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't convert inside. This is going to generate type stability problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solved at bbbb559
The branch works on my side to generate and reconstruct SMS sequence. Can you merge it at some point ? A missing feature will be have have standard 8/16/32 coils that are close to something real ? Or at least to share in the doc a good snippets to generate them |
Generation of a flexible and extensible Scanner object, to controll Hardware Limits, Gradient Behaviour, RF behaviour and magnetic field inhomegeneities.
Based in the pull request #454 and solving the issue #150 , this PR decouple the coils definition from the Phantom structure.
Clone this branch to test it using Julia Pkg: