Skip to content

Commit b1ce156

Browse files
committed
Merge remote-tracking branch 'origin/master' into JA/sm-whitening-weights
2 parents b4f5f98 + e991a42 commit b1ce156

10 files changed

Lines changed: 29 additions & 28 deletions

File tree

.github/workflows/Semgrep.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424
steps:
2525
# Checkout the repository.
2626
- name: Clone source code
27-
uses: actions/checkout@v6
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2828

2929
# Checkout custom rules
3030
- name: Checkout custom rules
31-
uses: actions/checkout@v6
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
with:
3333
repository: JuliaComputing/semgrep-rules-julia
3434
ref: main
3535
path: ./JuliaRules
3636

3737
# Prepare Python
38-
- uses: actions/setup-python@v6
38+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3939
with:
4040
python-version: '3.10'
4141

@@ -54,13 +54,13 @@ jobs:
5454
--exclude=JuliaRules
5555
5656
- name: Save Semgrep report
57-
uses: actions/upload-artifact@v6
57+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
5858
with:
5959
name: report.sarif
6060
path: report.sarif
6161

6262
- name: Upload Semgrep report
63-
uses: github/codeql-action/upload-sarif@v4
63+
uses: github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.34.1
6464
with:
6565
sarif_file: report.sarif
6666
category: semgrep

.github/workflows/TagBot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: JuliaRegistries/TagBot@v1
12+
- uses: JuliaRegistries/TagBot@bdfeaa1ff40e0ea449f9539aa21b2e587431ed49 # v1.24.6
1313
with:
1414
token: ${{ secrets.GITHUB_TOKEN }}
1515
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
arch:
2727
- x64
2828
steps:
29-
- uses: actions/checkout@v6
30-
- uses: julia-actions/setup-julia@v2
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30+
- uses: julia-actions/setup-julia@4c0cb0fce8556fdb04a90347310e5db8b1f98fb9 # v2.7.0
3131
with:
3232
version: ${{ matrix.version }}
3333
arch: ${{ matrix.arch }}
34-
- uses: actions/cache@v5
34+
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
3535
env:
3636
cache-name: cache-artifacts
3737
with:
@@ -41,10 +41,10 @@ jobs:
4141
${{ runner.os }}-test-${{ env.cache-name }}-
4242
${{ runner.os }}-test-
4343
${{ runner.os }}-
44-
- uses: julia-actions/julia-buildpkg@v1
45-
- uses: julia-actions/julia-runtest@v1
46-
- uses: julia-actions/julia-processcoverage@v1
47-
- uses: codecov/codecov-action@v5
44+
- uses: julia-actions/julia-buildpkg@e3eb439fad4f9aba7da2667e7510e4a46ebc46e1 # v1.7.0
45+
- uses: julia-actions/julia-runtest@d60b785c6f2bdf4ebfb18b2b6f7d93b7dfb0efe3 # v1.11.4
46+
- uses: julia-actions/julia-processcoverage@03114f09f119417c3242a9fb6e0b722676aedf38 # v1.2.2
47+
- uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
4848
env:
4949
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5050
with:
@@ -53,8 +53,8 @@ jobs:
5353
name: Documentation
5454
runs-on: ubuntu-latest
5555
steps:
56-
- uses: actions/checkout@v6
57-
- uses: julia-actions/setup-julia@v2
56+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
57+
- uses: julia-actions/setup-julia@4c0cb0fce8556fdb04a90347310e5db8b1f98fb9 # v2.7.0
5858
with:
5959
version: '1'
6060
- run: |

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MPIReco"
22
uuid = "e4246700-6248-511e-8146-a1d1f47669d2"
33
authors = ["Tobias Knopp <tobias@knoppweb.de>"]
4-
version = "0.9.5"
4+
version = "0.9.7"
55

66
[deps]
77
AbstractImageReconstruction = "a4b4fdbf-6459-4ec9-990d-77e1fa24a91b"
@@ -56,7 +56,7 @@ LRUCache = "1.6"
5656
LinearAlgebra = "1"
5757
LinearOperatorCollection = "2.1"
5858
LinearOperators = "2.3"
59-
MPIFiles = "0.13, 0.14, 0.15, 0.16, 0.17, 0.18"
59+
MPIFiles = "0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19"
6060
ProgressMeter = "1.2"
6161
Reexport = "1.0"
6262
RegularizedLeastSquares = "0.16"

docs/src/literate/explanations/recoplans.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ plan = toPlan(parameter)
2727
plan.frames = missing
2828

2929
# Or use the `clear!` method, which preserves the structure of a blueprint by default:
30-
clear!(plan)
30+
AbstractImageReconstruction.clear!(plan)
3131

3232
# `RecoPlans` can be written to and read from files:
3333
plan.frames = 1:42

src/Algorithms/HandsFreeAlgorithms/HandsFreeSinglePatch.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ function process(algo::SinglePatchReconstructionAlgorithm, params::SinglePatchHa
3434
return gridresult(result, algo.grid, algo.sf)
3535
end
3636

37-
function getLinearOperator(algo::SinglePatchReconstructionAlgorithm, params::SinglePatchHandsFreeReconstructionParameter{<:DenseSystemMatixLoadingParameter, S}) where {S}
37+
function getLinearOperator(algo::SinglePatchReconstructionAlgorithm, params::SinglePatchHandsFreeReconstructionParameter)
3838
return nothing
3939
end
4040

41-
function getLinearOperator(algo::SinglePatchReconstructionAlgorithm, params::SinglePatchHandsFreeReconstructionParameter{<:SparseSystemMatrixLoadingParameter, S}) where {S}
41+
function getLinearOperator(algo::SinglePatchReconstructionAlgorithm, params::SinglePatchHandsFreeReconstructionParameter{<:SparseSystemMatrixLoadingParameter})
4242
return process(algo, params.sfLoad, eltype(algo.S), algo.arrayType, tuple(shape(algo.grid)...))
4343
end

src/Algorithms/SinglePatchAlgorithms/SinglePatchAlgorithm.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ function process(algo::SinglePatchReconstructionAlgorithm, params::Union{W, Proc
8080
return algo.weights
8181
end
8282

83-
function getLinearOperator(algo::SinglePatchReconstructionAlgorithm, params::SinglePatchReconstructionParameter{<:DenseSystemMatixLoadingParameter, S}) where {S}
83+
function getLinearOperator(algo::SinglePatchReconstructionAlgorithm, params::SinglePatchReconstructionParameter)
8484
return nothing
8585
end
8686

87-
function getLinearOperator(algo::SinglePatchReconstructionAlgorithm, params::SinglePatchReconstructionParameter{<:SparseSystemMatrixLoadingParameter, S}) where {S}
87+
function getLinearOperator(algo::SinglePatchReconstructionAlgorithm, params::SinglePatchReconstructionParameter{<:SparseSystemMatrixLoadingParameter})
8888
return process(algo, params.sfLoad, algo.sf, eltype(algo.S), algo.arrayType, tuple(shape(algo.grid)...))
8989
end

src/SystemMatrix/SMExtrapolation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function extrapolateSM(SM::AbstractMatrix, grid::RegularGridPositions, ex_size::
216216
next!(p)
217217
end
218218
extrfov = (2 .* [ex_size[1], ex_size[2], ex_size[3]] .* (grid.fov ./ grid.shape)) .+ grid.fov
219-
extrgrid = RegularGridPositions{Float64}([M1,M2,M3], extrfov, grid.center, grid.sign)
219+
extrgrid = RegularGridPositions([M1,M2,M3], extrfov, grid.center, grid.sign)
220220
extrSM = transposed ? transpose(reshape(S_extr[1+Int(P1/2):end-Int(P1/2),1+Int(P2/2):end-Int(P2/2),1+Int(P3/2):end-Int(P3/2),:],(M1*M2*M3,K))) : reshape(S_extr[1+Int(P1/2):end-Int(P1/2),1+Int(P2/2):end-Int(P2/2),1+Int(P3/2):end-Int(P3/2),:],(M1*M2*M3,K))
221221
return extrSM,extrgrid
222222
else
@@ -235,7 +235,7 @@ function extrapolateSM(SM::AbstractMatrix, grid::RegularGridPositions, ex_size::
235235
next!(p)
236236
end
237237
extrfov = (2 .* [ex_size[1], ex_size[2], 0] .* (grid.fov ./ grid.shape)) .+ grid.fov
238-
extrgrid = RegularGridPositions{Float64}([M1,M2,1], extrfov, grid.center, grid.sign)
238+
extrgrid = RegularGridPositions([M1,M2,1], extrfov, grid.center, grid.sign)
239239
extrSM = transposed ? transpose(reshape(S_extr[1+Int(P1/2):end-Int(P1/2),1+Int(P2/2):end-Int(P2/2),1,:],(M1*M2,K))) : reshape(S_extr[1+Int(P1/2):end-Int(P1/2),1+Int(P2/2):end-Int(P2/2),1,:],(M1*M2,K))
240240
return extrSM,extrgrid
241241
end

src/SystemMatrix/SystemMatrix.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,10 @@ function getSF(bSF::MPIFile,saveto::String;recChannels=1:numReceivers(bSF),kargs
226226
bG = params[:measData][acqNumFGFrames(bSF)+1:end,:,:,:]
227227
params[:measData]=vcat(reshape(S,size(S,1),Int(size(S,2)/3),3,1),bG)
228228
params[:acqNumFrames]=size(vcat(reshape(S,size(S,1),Int(size(S,2)/3),3,1),bG),1)
229-
params[:calibFov]=grid.fov
230-
params[:calibSize]=grid.shape
231-
params[:calibFovCenter]=grid.center
229+
# Turn SVectors to Vectors for HDF5 write
230+
params[:calibFov]=Vector(grid.fov)
231+
params[:calibSize]=Vector(grid.shape)
232+
params[:calibFovCenter]=Vector(grid.center)
232233
# Wann ist diese Zuordnung nicht einfach fortlaufend..dieser Fall ist so nicht abgedeckt
233234
params[:measIsBGFrame]=(i-> i in collect(size(S,1)+1:size(S,1)+size(bG,1))).(collect(1:size(S,1)+size(bG,1)))
234235
saveasMDF(saveto, params)

src/Utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ squeeze(A) = dropdims(A, dims=tuple(findall(([size(A)...].==1))...))
1111
gridresult(result::Array, grid, ::MPIFile) = gridresult(result, grid, 1)
1212
gridresult(result::Array, grid, sf::AbstractVector{MPIFile}) = gridresult(result, grid, length(sf))
1313
gridresult(result::Array, grid::RegularGridPositions, numcolors::Int64) = gridresult(result, shape(grid), numcolors)
14-
function gridresult(result::Array, shp::Vector{Int64}, numcolors::Int64)
14+
function gridresult(result::Array, shp::AbstractVector{Int64}, numcolors::Int64)
1515
cArray = Array{Float32}(undef, numcolors, shp..., size(result)[end])
1616
result = reshape(result, reduce(*, shp), numcolors, :)
1717
result = permutedims(result, [2, 1, 3])

0 commit comments

Comments
 (0)