-
Notifications
You must be signed in to change notification settings - Fork 22
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
MRIReco load time #199
Comments
@cncastillo I think :
@tknopp do you know what Distributions was used for ? |
Thanks @tknopp for merging #220
|
@cncastillo can you try with thus changes :) Unitful is only used in : function makeAxisArray(I::AbstractArray{Complex{T},6}, acqData::AcquisitionData{T,D}) where {T,D}
offset = zeros(3)*Unitful.mm
shape = ones(Int, 3)
shape[1:D] .= encodingSize(acqData)
spacing = fieldOfView(acqData) ./ shape * Unitful.mm
im = AxisArray(I,
Axis{:x}(range(offset[1], step=spacing[1], length=size(I,1))),
Axis{:y}(range(offset[2], step=spacing[2], length=size(I,2))),
Axis{:z}(range(offset[3], step=spacing[3], length=size(I,3))),
Axis{:echos}(1:size(I,4)),
Axis{:coils}(1:size(I,5)),
Axis{:repetitions}(1:size(I,6)))
return im
end Right now, the geometry stored along the reconstructed array is not required by any functions (except writing a nifti files) maybe we can move the function in MRIFiles because the post-processing steps are generally applied on NIfTI |
We could probably remove |
I was checking how long some packages were taking to load (as KomaMRI is taking around 3s to load), and I got the following results:
Here, I just showed the packages that take more than 100ms to load (using
@time_imports
).It may be worth considering moving some to a package extension. I would be happy to help, but I need an overall idea of why each package is needed.
LowRankApprox.jl
is the heaviest, so that would be a good one to target orDistributions.jl
. I believe thatUnitful.jl
could probably be easily moved to a package extension.The text was updated successfully, but these errors were encountered: