Skip to content

Commit

Permalink
Remove kwdef for Observatory type
Browse files Browse the repository at this point in the history
  • Loading branch information
abhro committed Jun 17, 2024
1 parent 768b7a6 commit 747a82d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Type holding information about an observing site. Its fields are:
* `altitude`: altitude of the site in meters
* `tz`: the number of hours of offset from UTC
"""
Base.@kwdef struct Observatory
struct Observatory
name::String
latitude::Float64
longitude::Float64
Expand All @@ -22,10 +22,10 @@ Base.@kwdef struct Observatory

# Define constructor that automatically converts longitude and latitude with
# "ten", for convenience.
Observatory(name, lat, long, altitude, tz) =
Observatory(name, lat, long, alt, tz) =
new(String(name),
Float64(ten(lat)), Float64(ten(long)),
Float64(float(altitude)),
Float64(float(alt)),
Float64(ten(tz)))
end

Expand Down

0 comments on commit 747a82d

Please sign in to comment.