@@ -19,7 +19,7 @@ function parse_input_data(input_data::String; hdu_in = nothing)
19
19
end
20
20
21
21
function parse_input_data (input_data:: FITS ; hdu_in = nothing )
22
- if isnothing ( hdu_in)
22
+ if hdu_in === nothing
23
23
if length (input_data) > 1
24
24
throw (ArgumentError (" More than one HDU is present, please specify which HDU to use with 'hdu_in' option" ))
25
25
else
@@ -50,7 +50,7 @@ Parse output projection and returns a WCS object and shape of output.
50
50
- `hdu_number`: specifies HDU number when file name is given as input.
51
51
"""
52
52
function parse_output_projection (output_projection:: WCSTransform ; shape_out = nothing )
53
- if isnothing ( shape_out)
53
+ if shape_out === nothing
54
54
throw (ArgumentError (" Need to specify shape when specifying output_projection as WCS object" ))
55
55
elseif length (shape_out) == 0
56
56
throw (DomainError (shape_out, " The shape of the output image should not be an empty tuple" ))
61
61
62
62
function parse_output_projection (output_projection:: ImageHDU ; shape_out = nothing )
63
63
wcs_out = WCS. from_header (read_header (output_projection, String))[1 ]
64
- if isnothing ( shape_out)
64
+ if shape_out === nothing
65
65
shape_out = size (output_projection)
66
66
end
67
67
if length (shape_out) == 0
72
72
73
73
function parse_output_projection (output_projection:: String ; hdu_number = nothing )
74
74
hdu_list = FITS (output_projection)
75
- if isnothing ( hdu_number)
75
+ if hdu_number === nothing
76
76
wcs_out = WCS. from_header (read_header (hdu_list[1 ], String))[1 ]
77
77
hdu_number = 1
78
78
else
0 commit comments