From 13460e00eb1b480ef5e7eb7a885d648ca570ac64 Mon Sep 17 00:00:00 2001 From: MartinuzziFrancesco Date: Sun, 12 Jan 2025 17:15:08 +0100 Subject: [PATCH] fixes --- src/SpectralIndices.jl | 4 ++-- src/utils.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SpectralIndices.jl b/src/SpectralIndices.jl index 088f531..fd33de7 100644 --- a/src/SpectralIndices.jl +++ b/src/SpectralIndices.jl @@ -1,8 +1,8 @@ module SpectralIndices using Compat: @compat -using Dates: Date -using Downloads: download +using Dates: Date, @dateformat_str +using Downloads: Downloads using JSON: parsefile indices_funcs = Dict() diff --git a/src/utils.jl b/src/utils.jl index 4da6101..14d34c4 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -61,7 +61,7 @@ function get_indices( ) final_file = joinpath(fileloc, filename) if online - indices_loc = download( + indices_loc = Downloads.download( "https://raw.githubusercontent.com/awesome-spectral-indices/awesome-spectral-indices/main/output/spectral-indices-dict.json", final_file, )