ArtifactWrappers.jl

A lightweight wrapper around Julia Artifacts.

ArtifactWrappers.ArtifactFileType
ArtifactFile

A single data file to be downloaded, containing both the url and the name to use locally.

Fields

  • url URL pointing to data to be downloaded
  • filename Local name used for downloaded online data
source
ArtifactWrappers.ArtifactWrapperType
ArtifactWrapper

A 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_dir Directory to store artifact / data
  • lazy_download Lazily download data. Set to false to eagerly download data.
  • artifact_toml Path to the used Artifacts.toml
  • data_name Unique name of dataset
  • artifact_files Array of ArtifactFile's, grouped by this dataset
source