diff --git a/docs/Artifacts.toml b/docs/Artifacts.toml index f5305db..c3e4bfa 100644 --- a/docs/Artifacts.toml +++ b/docs/Artifacts.toml @@ -1,6 +1,5 @@ [MP2RAGE_data] git-tree-sha1 = "04cd4c29bb9e2aeb5384fbc70a9af0e1a37ca369" -lazy = true [[MP2RAGE_data.download]] sha256 = "1f1b703c79db66ba6ef620651eca431cb0319d87f1eafa53826cb11a93afe4a8" diff --git a/docs/lit/examples/advanced_reco.jl b/docs/lit/examples/advanced_reco.jl index ffde813..c951559 100644 --- a/docs/lit/examples/advanced_reco.jl +++ b/docs/lit/examples/advanced_reco.jl @@ -16,28 +16,11 @@ using CairoMakie # plotting # ## Loading Package -using Artifacts using LazyArtifacts # loading data using SEQ_BRUKER_a_MP2RAGE_CS_360 using CairoMakie # plotting -artifact_data = """ -[MP2RAGE_data] -git-tree-sha1 = "04cd4c29bb9e2aeb5384fbc70a9af0e1a37ca369" -lazy = true - - [[MP2RAGE_data.download]] - sha256 = "1f1b703c79db66ba6ef620651eca431cb0319d87f1eafa53826cb11a93afe4a8" - url = "https://zenodo.org/records/14051522/files/data.tar.gz" -""" -# ## Download the datasets -temp_artifact_toml = tempname() -open(temp_artifact_toml, "w") do file - write(file, artifact_data) -end -_hash = artifact_hash("MP2RAGE_data", temp_artifact_toml) -datadir = artifact_path(_hash) - +datadir = Main.MP2_artifacts @info "The test data is located at $datadir." # If you want to perform your own reconstruction, you can change the following line in order to point to another a bruker dataset diff --git a/docs/lit/examples/simple_reco.jl b/docs/lit/examples/simple_reco.jl index 94384de..32bd875 100644 --- a/docs/lit/examples/simple_reco.jl +++ b/docs/lit/examples/simple_reco.jl @@ -8,30 +8,13 @@ # # ## Loading Package -using Artifacts using LazyArtifacts # loading data using SEQ_BRUKER_a_MP2RAGE_CS_360 using CairoMakie # plotting # ## Download the datasets -artifact_data = """ -[MP2RAGE_data] -git-tree-sha1 = "04cd4c29bb9e2aeb5384fbc70a9af0e1a37ca369" -lazy = true - - [[MP2RAGE_data.download]] - sha256 = "1f1b703c79db66ba6ef620651eca431cb0319d87f1eafa53826cb11a93afe4a8" - url = "https://zenodo.org/records/14051522/files/data.tar.gz" -""" - -# Write the data to a temporary file -temp_artifact_toml = tempname() -open(temp_artifact_toml, "w") do file - write(file, artifact_data) -end -_hash = artifact_hash("MP2RAGE_data", temp_artifact_toml) -datadir = artifact_path(_hash) +datadir = Main.MP2_artifacts @info "The test data is located at $datadir." # If you want to perform your own reconstruction, you can change the following line in order to point to another a bruker dataset diff --git a/docs/make.jl b/docs/make.jl index 14ef823..77942fe 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,5 +1,9 @@ using SEQ_BRUKER_a_MP2RAGE_CS_360 using Documenter, Literate +using LazyArtifacts +using Artifacts + +MP2_artifacts = artifact"MP2RAGE_data" include("generate_lit.jl")