-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downloaders break when imported as part of another module #164
Comments
should be a simple fix to add
|
this is also a problem for the paths provided by |
Yeah, good call, it's going to do that for all providers, so I'm guessing we need an option to sanitize paths and URLs. It shouldn't be too complicated because we know exactly what string to remove. |
makes sense. not sure if this works but if there are not other impacts it could be implemented at the |
I am working on this in #167 -- I think it's "simply" a matter of catching the module name in the string, and them replacing them by an empty string. |
When building download links, this bit of code
SpeciesDistributionToolkit.jl/SimpleSDMDatasets/src/providers/CHELSA/chelsa_future_v2.jl
Line 49 in f243c40
$scenario_code
wherescenario_code = replace(lowercase(string(S)), "_" => "-")
, andS
is a SSP struct.When I import the SDT in a module, e.g.
MyModule.jl
:and run
fails because it trys to download a url with slug
2011-2040/SIMPLESDMDATASETS.GFDL-ESM4/simplesdmdatasets.ssp370/bio/CHELSA_bio1_2011-2040_simplesdmdatasets.gfdl-esm4_simplesdmdatasets.ssp370_V.2.1.tif
.The text was updated successfully, but these errors were encountered: