Skip to content

Commit

Permalink
Merge pull request #193 from Heptazhou/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mileslucas authored Apr 27, 2024
2 parents 69b9e77 + bcfa489 commit 0ea99f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "FITSIO"
uuid = "525bcba6-941b-5504-bd06-fd0dc1a4d2eb"
version = "0.17.1"
version = "0.17.2"

[deps]
CFITSIO = "3b1b4be9-1499-4b22-8d78-7db3344d1961"
Expand Down
5 changes: 3 additions & 2 deletions src/table.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ for (T, tform, code) in ((UInt8, 'B', 11),
(Int16, 'I', 21),
(UInt32, 'V', 40),
(Int32, 'J', 41),
(UInt64, 'W', 80),
(Int64, 'K', 81),
(Float32, 'E', 42),
(Float64, 'D', 82),
Expand All @@ -31,7 +32,7 @@ for (T, tform, code) in ((UInt8, 'B', 11),
CFITSIO_COLTYPE[code] = T
end
const FITSTableScalar = Union{UInt8, Int8, Bool, UInt16, Int16, UInt32,
Int32, Int64, Float32, Float64, ComplexF32,
Int32, UInt64, Int64, Float32, Float64, ComplexF32,
ComplexF64}

# Helper function for reading information about a (binary) table column
Expand Down Expand Up @@ -383,7 +384,7 @@ appending the table extension to it. `data` should be a dictionary
with String keys (giving the column names) and Array values
(giving data to write to each column). The following types are
supported in binary tables: `UInt8`, `Int8`, `UInt16`, `Int16`,
`UInt32`, `Int32`, `Int64`, `Float32`, `Float64`, `Complex{Float32}`,
`UInt32`, `Int32`, `UInt64`, `Int64`, `Float32`, `Float64`, `Complex{Float32}`,
`Complex{Float64}`, `String`, `Bool`.
Optional inputs:
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ end
FITS(fname, "w") do f
## Binary table
indata = Dict{String, Array}()
for (i, T) in enumerate([UInt8, Int8, UInt16, Int16, UInt32, Int32, Int64,
for (i, T) in enumerate([UInt8, Int8, UInt16, Int16, UInt32, Int32, UInt64, Int64,
Float32, Float64, ComplexF32, ComplexF64])
indata["col$i"] = T[1:20;]
end
Expand Down

2 comments on commit 0ea99f4

@abhro
Copy link
Member

@abhro abhro commented on 0ea99f4 Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/108822

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.17.2 -m "<description of version>" 0ea99f43a6d0b1e57c18b4ebe0e520aebe93b142
git push origin v0.17.2

Please sign in to comment.