-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the naming issue when imported from a submodule (#167)
* 🩹 prepare for new patch release * 🟩 test (not passing!) for module import * 🟩 add code to remove the module name from the strings * ℹ️ remove the @info from the test
- Loading branch information
Showing
5 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
# SimpleSDMDatasets | ||
|
||
This *will* serve as a replacement for the data system in *SimpleSDMLayers.jl*. | ||
This package serves as the data provisioning system for `SpeciesDistributionToolkit`. | ||
|
||
  | ||
|
||
 | ||
|
||
This package has a smaller mission statement, namely: | ||
This package has a very small mission statement, namely: | ||
|
||
1. provide a simple interface to get access to raster data | ||
2. implement this interface for commonly used data | ||
3. ensure that the raster data are downloaded as needed and stored in a central location | ||
4. provide enough checks that users can build on top of it rapidly (for example, | ||
the wrapper for bioclim in CHELSA2.1 is only about 15 loc) | ||
|
||
For now this is a *work in progress* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module SSDImportModuleTest | ||
using Test | ||
using SimpleSDMDatasets | ||
|
||
# This is not the cleanest test, but it is checking that the module works when called from | ||
# within another module | ||
|
||
module TestModule | ||
|
||
_prefix = Main.SSDImportModuleTest.SimpleSDMDatasets | ||
using Main.SSDImportModuleTest.SimpleSDMDatasets | ||
|
||
function foo() | ||
_prefix.downloader( | ||
RasterData(WorldClim2, BioClim), | ||
layer="BIO7") | ||
end | ||
export foo | ||
end | ||
|
||
@test isfile(first(TestModule.foo())) | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39a871e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register subdir="SimpleSDMDatasets"
39a871e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/81699
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: