Skip to content

Commit

Permalink
fixed jldoctests?
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Reefe committed Oct 2, 2024
1 parent b72219d commit d9cb028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/frebin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@ the sum of the x and y coordinates in the original image:
```jldoctest
julia> using AstroLib
julia> image = [x+y for x in 1:800, y in 1:800]
julia> image = [x+y for x in 1:800, y in 1:800];
julia> image1 = frebin(image, 850, 900, total=true);
julia> sum(image)
512640000
julia> sum(image1)
5.126400000000241e8
```
Expand Down
2 changes: 2 additions & 0 deletions src/fshift.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ y coordinates:
```jldoctest
julia> using AstroLib
julia> image = [x+y for x in 1:10, y in 1:10];
julia> fshift(image, 0.5, 0.5)
10×10 Matrix{Float64}:
11.0 7.0 8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0
Expand Down

0 comments on commit d9cb028

Please sign in to comment.