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

Limit 'NadcsPerImage' to be at least 1 #526

Closed

Conversation

Stockless
Copy link
Collaborator

As "NadcsPerImage" shouldn't ever be less than 1, it gets limited to be the at least 1. This implementation avoids a possible division by 0 in ISMRMRD.jl, Solving the Issue #409 :

if scan_counter % NadcsPerImage == 0 #For now only Nz is considered
    nz += 1 #another image
    scan_counter = 0 #reset counter
end

@cncastillo
Copy link
Member

This needs to be done from this repo, not a fork.

@cncastillo cncastillo closed this Dec 18, 2024
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