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 #101 to support Julia 0.6, 0.7 and 1.0 #104

Closed emmt closed 5 years ago

emmt commented 5 years ago

This PR is both a review and a fix of #101 to extend FITSIO support to all Julia versions ≥ 0.6

The fixes are summarized in the commit comments. The proposed PR passes all the tests with Julia versions 0.6.4, 0.7.0 and 1.0.0.

For the review part, I fully agree with most of the changes done in #101. In fact, they are quite similar to my changes in #103, thus this new PR is a candidate for replacing #101 and #103. In #101 and #103. As discussed in #101 and #103, the most significant changes concern the try_parse_hdrval methods:

Note that methods try_parse_hdrval can be assumed to be private as they are not documented in FITSIO doc. and are only called in the file header.jl. These changes should not affect the end users.

Future improvements

giordano commented 5 years ago

This is great! I hope I'll be able to have a look tonight.

mweastwood commented 5 years ago

Thanks for picking up where I left off! This looks great.

giordano commented 5 years ago

Ok, I think we've waited enough considered that #101 has been open for some months now, I'm going to merge this. Thanks again @emmt and @mweastwood!

giordano commented 5 years ago

@emmt You've outlined some good future improvements: please put them in a new issue, so they won't be lost here :wink:

emmt commented 5 years ago

Yes I will do that. Thanks!