Skip to content

Commit 6dbd7f3

Browse files
committed
fixes for supporting julia 1.0
1 parent ab1a81d commit 6dbd7f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/parsers.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function parse_input_data(input_data::String; hdu_in = nothing)
1919
end
2020

2121
function parse_input_data(input_data::FITS; hdu_in = nothing)
22-
if isnothing(hdu_in)
22+
if hdu_in === nothing
2323
if length(input_data) > 1
2424
throw(ArgumentError("More than one HDU is present, please specify which HDU to use with 'hdu_in' option"))
2525
else
@@ -50,7 +50,7 @@ Parse output projection and returns a WCS object and shape of output.
5050
- `hdu_number`: specifies HDU number when file name is given as input.
5151
"""
5252
function parse_output_projection(output_projection::WCSTransform; shape_out = nothing)
53-
if isnothing(shape_out)
53+
if shape_out === nothing
5454
throw(ArgumentError("Need to specify shape when specifying output_projection as WCS object"))
5555
elseif length(shape_out) == 0
5656
throw(DomainError(shape_out, "The shape of the output image should not be an empty tuple"))
@@ -61,7 +61,7 @@ end
6161

6262
function parse_output_projection(output_projection::ImageHDU; shape_out = nothing)
6363
wcs_out = WCS.from_header(read_header(output_projection, String))[1]
64-
if isnothing(shape_out)
64+
if shape_out === nothing
6565
shape_out = size(output_projection)
6666
end
6767
if length(shape_out) == 0
@@ -72,7 +72,7 @@ end
7272

7373
function parse_output_projection(output_projection::String; hdu_number = nothing)
7474
hdu_list = FITS(output_projection)
75-
if isnothing(hdu_number)
75+
if hdu_number === nothing
7676
wcs_out = WCS.from_header(read_header(hdu_list[1], String))[1]
7777
hdu_number = 1
7878
else

0 commit comments

Comments
 (0)