diff --git a/Project.toml b/Project.toml index e0495ef..45d0ce0 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Exts" uuid = "0b12d779-4123-4875-9d6c-e33c2e29e2c9" authors = ["Heptazhou "] -version = "0.1.5" +version = "0.1.6" [deps] DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab" @@ -21,5 +21,5 @@ StatisticsExt = "StatsBase" [compat] CFITSIO = "≥ 1.4.2" -FITSIO = "≥ 0.16.6" +FITSIO = "≥ 0.17.2" julia = "≥ 1.9" diff --git a/ext/FITSIOExt.jl b/ext/FITSIOExt.jl index 7634759..a71633d 100644 --- a/ext/FITSIOExt.jl +++ b/ext/FITSIOExt.jl @@ -37,16 +37,5 @@ function Base.read(t::EitherTableHDU, ::Type{DataFrame}, DataFrame(map(fetch, cols), colnames) end -# https://github.com/JuliaAstro/FITSIO.jl/pull/193 -@static if !hasmethod(FITSIO.fits_tform_char, (Type{UInt64},)) - FITSIO.fits_tform_char(::Type{UInt64}) = 'W' -end -@static if !haskey(FITSIO.CFITSIO_COLTYPE, 080) - function __init__() - FITSIO.CFITSIO_COLTYPE[080] = UInt64 - nothing - end -end - end # module diff --git a/test/runtests.jl b/test/runtests.jl index 197eb82..e76b97f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -87,12 +87,10 @@ end "v5_13_2/spectra/lite/3650/spec-3650-55244-0001.fits", update_period = Inf, ) - FITS(tmp) do f - @test read(f["SPALL"], DataFrame) isa DataFrame - end - FITS(tmp, "r+") do f - @test_throws ArgumentError read(f["SPALL"], DataFrame) - end + FITS(f -> @test_throws(ArgumentError, + read(f["SPALL"], DataFrame)), tmp, "r+") + FITS(f -> @test_nowarn( + read(f["SPALL"], DataFrame)), tmp, "r") rm(tmp, force = true) end