Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Heptazhou committed Jun 28, 2024
1 parent 960c4d2 commit 95cc566
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Exts"
uuid = "0b12d779-4123-4875-9d6c-e33c2e29e2c9"
authors = ["Heptazhou <zhou at 0h7z dot com>"]
version = "0.1.5"
version = "0.1.6"

[deps]
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
Expand All @@ -21,5 +21,5 @@ StatisticsExt = "StatsBase"

[compat]
CFITSIO = "≥ 1.4.2"
FITSIO = "≥ 0.16.6"
FITSIO = "≥ 0.17.2"
julia = "≥ 1.9"
11 changes: 0 additions & 11 deletions ext/FITSIOExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

10 changes: 4 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 95cc566

Please sign in to comment.