Fixed the namespace warning
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using Dates
|
||||
|
||||
export mbh
|
||||
|
||||
"""
|
||||
@@ -40,7 +38,7 @@ Returns a random date between two dates
|
||||
"""
|
||||
function gen_date(date_range::Tuple{DateTime, DateTime})
|
||||
l0, lf = date_range
|
||||
l0 + Dates.Millisecond(floor(rand()*(lf-l0).value))
|
||||
l0 + Millisecond(floor(rand()*(lf-l0).value))
|
||||
end
|
||||
|
||||
"""
|
||||
@@ -48,7 +46,7 @@ Returns a random amount of time in a range
|
||||
"""
|
||||
function gen_period(date_range::Tuple{DateTime, DateTime})
|
||||
l0, lf = date_range
|
||||
Dates.Millisecond(floor(rand()*(lf-l0).value))
|
||||
Millisecond(floor(rand()*(lf-l0).value))
|
||||
end
|
||||
|
||||
"""
|
||||
@@ -190,10 +188,10 @@ end
|
||||
function mbh( flybys::Vector{Body},
|
||||
sc::Sc,
|
||||
start_mass::Float64,
|
||||
launch_window::Pair{Date},
|
||||
launch_window::Tuple{DateTime, DateTime},
|
||||
max_C3::Float64,
|
||||
max_v∞::Float64,
|
||||
latest_arrival::Date,
|
||||
latest_arrival::DateTime,
|
||||
primary::Body=Sun;
|
||||
search_patience::Int=1_000,
|
||||
drill_patience::Int=50)
|
||||
|
||||
Reference in New Issue
Block a user