diff --git a/src/FITSIO.jl b/src/FITSIO.jl index 4570c0a..9dda9e1 100644 --- a/src/FITSIO.jl +++ b/src/FITSIO.jl @@ -12,7 +12,7 @@ export FITS, get_comment, set_comment!, copy_section, - get_default_header + default_header import Base: getindex, setindex!, diff --git a/src/header.jl b/src/header.jl index d224746..b58fc6e 100644 --- a/src/header.jl +++ b/src/header.jl @@ -424,11 +424,11 @@ function show(io::IO, hdr::FITSHeader) end """ - get_default_header(data::AbstractArray) + default_header(data::AbstractArray) Creates a default header for the given array with the `SIMPLE`, `BITPIX`, `NAXIS`, `NAXIS*`, and `EXTEND` entries. """ -function get_default_header(data::AbstractArray{T}) where T <: Number +function default_header(data::AbstractArray{T}) where T <: Number # assigning keys hdu_keys = ["SIMPLE", "BITPIX", diff --git a/test/runtests.jl b/test/runtests.jl index 0945925..e7689f3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -566,9 +566,9 @@ HISTORY this is a history""" close(f) rm(fname, force=true) - # Test for get_default_header + # Test for default_header data = fill(Int16(2), 5, 6, 2) - hdr = get_default_header(data) + hdr = default_header(data) @test hdr isa FITSHeader @test hdr["SIMPLE"] == true @test hdr["BITPIX"] == 16