Skip to content

Commit 5da77f0

Browse files
bugfixes
1 parent 23e3e72 commit 5da77f0

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/CI.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
- uses: julia-actions/julia-processcoverage@v1
4141
- uses: codecov/codecov-action@v5
4242
with:
43-
file: lcov.info
43+
token: ${{ secrets.CODECOV_TOKEN }}
44+
slug: MagneticResonanceImaging/MRIRealign.jl
4445
docs:
4546
name: Documentation
4647
runs-on: ubuntu-latest

docs/src/index.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ MRIRealign.realign!
1717

1818
## Helper functions
1919

20-
```@autodocs
21-
Modules = [MRIRealign]
22-
Filter = """
23-
b -> begin
24-
obj = Documenter.DocSystem.getobject(b)
25-
!(obj === realign!)
26-
end
27-
"""
20+
```@docs
21+
MRIRealign.create_rotation_matrix
22+
MRIRealign.create_affine_matrix
2823
```

src/MRIRealign.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function realign!(img::AbstractArray{Tin,4};
7676
end
7777

7878
# random shifts seem to help with the speed of convertion (cf. SPM)
79-
mask_inds = [Tuple(idx) .+ rand(NTuple{3,T}) .- T(0.5) for idx findall(mask)]
79+
mask_inds = [Tuple(idx) .+ ntuple(_ -> rand(T), 3) .- T(0.5) for idx findall(mask)]
8080

8181
_motion_params = Array{T}(undef, 6, length(img_itp), length(t_refs))
8282
for (i_ref, t_ref) enumerate(t_refs)

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ img_itp = extrapolate(interpolate(image, BSpline(Cubic())), Interpolations.Flat(
3333

3434

3535
## test gradients
36-
inds = [Tuple(idx) .+ rand(NTuple{3,Float64}) .- 0.5 for idx CartesianIndices(image)]
36+
inds = [Tuple(idx) .+ ntuple(_ -> rand(Float64), 3) .- 0.5 for idx CartesianIndices(image)]
3737
# inds = CartesianIndices(image)
3838
reference = [img_itp(idx[1], idx[2], idx[3]) for idx in inds]
3939
grad_field = [Interpolations.gradient(img_itp, idx[1], idx[2], idx[3]) for idx inds]

0 commit comments

Comments
 (0)