Skip to content

Commit

Permalink
modified: Julia/fits.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
jvo203 committed Jun 8, 2022
1 parent 6ccc397 commit 3d232f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Julia/fits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3063,7 +3063,12 @@ function getImageSpectrum(fits::FITSDataSet, req::Dict{String,Any})

# add a padding to make sure the histogram is aligned
# (a multiple of 4 in needed by JavaScript)
println("Julia histogram offset: $offset")
padding = 4 - mod(offset, 4)
println("Julia histogram offset: $offset, padding: $padding byte(s).")

if padding > 0
write(image_resp, zeros(UInt8, padding))
end

# and the histogram
println("typeof(bins):", typeof(bins))
Expand Down

0 comments on commit 3d232f7

Please sign in to comment.