Skip to content
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

Scanner object considering multiple coils #548

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

Conversation

Stockless
Copy link
Collaborator

@Stockless Stockless commented Mar 14, 2025

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:

pkg> add https://github.com/JuliaHealth/KomaMRI.jl:KomaMRIBase#scanner-develop
pkg> add https://github.com/JuliaHealth/KomaMRI.jl:KomaMRICore#scanner-develop
pkg> add KomaMRI

@Stockless Stockless requested a review from cncastillo March 14, 2025 20:44
@cncastillo cncastillo changed the title scanner-develop Scanner object considering multiple coils Mar 14, 2025
@Stockless Stockless marked this pull request as draft March 14, 2025 21:39
…dd a getprperty to the Scanner.limits.symbol values.
@@ -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
Copy link
Member

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Solved at bbbb559

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants