ArtifactWrappers.jl
A lightweight wrapper around Julia Artifacts.
ArtifactWrappers.ArtifactFile — TypeArtifactFileA single data file to be downloaded, containing both the url and the name to use locally.
Fields
urlURL pointing to data to be downloadedfilenameLocal name used for downloaded online data
ArtifactWrappers.get_data_folder — Functionget_data_folder(art_wrap::ArtifactWrapper)Get local folder of dataset defined in art_wrap.
Example:
dataset_path = get_data_folder(dataset)ArtifactWrappers.ArtifactWrapper — TypeArtifactWrapperA set of data files to be downloaded, grouped by data_name. Example:
dataset = ArtifactWrapper(
@__DIR__,
isempty(get(ENV, "CI", "")),
"MyDataSet",
ArtifactFile[
ArtifactFile(
url="https://..../SomeNetCDF1.nc",
filename="experiment1.nc",
),
ArtifactFile(
url="https://..../SomeNetCDF2.nc",
filename="experiment2.nc",
),
]
)Fields
artifact_dirDirectory to store artifact / datalazy_downloadLazily download data. Set to false to eagerly download data.artifact_tomlPath to the used Artifacts.tomldata_nameUnique name of datasetartifact_filesArray ofArtifactFile's, grouped by this dataset