Fixed the namespace warning
This commit is contained in:
@@ -5,6 +5,7 @@ module Thesis
|
||||
using PlotlyJS
|
||||
using Distributed
|
||||
using SPICE
|
||||
using Dates: DateTime, Millisecond, Dates
|
||||
|
||||
try
|
||||
furnsh("../../spice_files/naif0012.tls")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Dates
|
||||
|
||||
"""
|
||||
I didn't want to have to write this...I'm going to try to do this as quickly as possible from old,
|
||||
bad code
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Dates
|
||||
|
||||
export Phase, Mission_Guess, Mission, Bad_Mission
|
||||
export test_phase1, test_phase2
|
||||
export test_mission_guess, test_mission_guess_simple
|
||||
|
||||
Reference in New Issue
Block a user