JuliaAstro / FITSIO.jl

Flexible Image Transport System (FITS) file support for Julia
http://juliaastro.org/FITSIO.jl/
MIT License
55 stars 29 forks source link

fix scalar indexing in Julia 0.5 #47

Closed kbarbary closed 8 years ago

kbarbary commented 8 years ago

This fixes tests on Julia v0.5, by making read(hdu, 1, 1:10) return an Array{T, 1} instead of Array{T, 2}, in line with how data[1, 1:10] now works.

It would probably be good to have a more precise version for this change if anyone knows it. Right now the test is just VERSION >= v"0.5.0-dev".