From a4caeb9c77d8dd67843951800d9ef3efffab48c3 Mon Sep 17 00:00:00 2001 From: Joey Carpinelli Date: Tue, 20 Feb 2024 22:43:56 -0500 Subject: [PATCH] Updates [compat]; removes test --- .gitattributes | 6 ------ Project.toml | 8 ++++---- src/GeneralAstrodynamics.jl | 26 +++++++++++++++++++++++++- test/runtests.jl | 1 + 4 files changed, 30 insertions(+), 11 deletions(-) delete mode 100644 .gitattributes create mode 100644 test/runtests.jl diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index cf87526d..00000000 --- a/.gitattributes +++ /dev/null @@ -1,6 +0,0 @@ -# Set default behaviour to automatically normalize line endings. -* text=auto - -# Force bash scripts to always use lf line endings so that if a repo is accessed -# in Unix via a file share from Windows, the scripts will work. -*.sh text eol=lf diff --git a/Project.toml b/Project.toml index 382f521a..58dbf7ad 100644 --- a/Project.toml +++ b/Project.toml @@ -14,10 +14,10 @@ SPICEBodies = "19f1efb6-7162-484a-b3a1-b52c391689d7" SPICEKernels = "8e9d28ce-e483-4ef7-bfd9-45b8fef6369c" [compat] -julia = "1.6" -AstrodynamicalCalculations = "0.3" -AstrodynamicalModels = "3" -AstrodynamicalSolvers = "0.2" +julia = "1.7" +AstrodynamicalCalculations = "^0.5.1" +AstrodynamicalModels = "3.4" +AstrodynamicalSolvers = "0.4" DocStringExtensions = "0.9" Reexport = "1.2" SPICE = "0.2" diff --git a/src/GeneralAstrodynamics.jl b/src/GeneralAstrodynamics.jl index 64bafbd6..6bbf6b32 100644 --- a/src/GeneralAstrodynamics.jl +++ b/src/GeneralAstrodynamics.jl @@ -30,9 +30,33 @@ using DocStringExtensions $(DOCSTRING) """ +""" +Load several small SPICE kernels to support simple operations. The kernels +loaded into memory sum to less than 11MB. + +# Extended Help + +Calls `SPICE.furnsh` on the following kernels. + +- `de432s.bsp` (approximately 10MB) +- `latest_leapseconds_lsk.tls` (approximately 5KB) +- `gm_de440.tpc` (approximately 12KB) +- `pck00011.tpc` (approximately 130KB) +""" +function load_generic_spice_kernels!() + return furnsh( + de432s(), # position and velocity data for nearby planets + latest_leapseconds_lsk(), # timekeeping, parsing epochs + gm_de440(), # mass parameters for major solar system bodies + pck00011(), # physical properties of major solar system bodies + ) +end + @reexport using AstrodynamicalCalculations @reexport using AstrodynamicalModels @reexport using AstrodynamicalSolvers -@reexport using SPICE, SPICEKernels, SPICEBodies +@reexport using SPICE: furnsh +@reexport using SPICEKernels +@reexport using SPICEBodies end # module diff --git a/test/runtests.jl b/test/runtests.jl new file mode 100644 index 00000000..d761309e --- /dev/null +++ b/test/runtests.jl @@ -0,0 +1 @@ +using Test, GeneralAstrodynamics \ No newline at end of file