From b74ca59551dbba2a86f3cacce27ff8ca430d079a Mon Sep 17 00:00:00 2001 From: Jonas Schumacher Date: Thu, 28 Sep 2023 11:54:54 +0200 Subject: [PATCH] Switch to artifact --- example/Artifacts.toml | 6 ++++++ example/plotField.jl | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 example/Artifacts.toml diff --git a/example/Artifacts.toml b/example/Artifacts.toml new file mode 100644 index 0000000..48a6f8b --- /dev/null +++ b/example/Artifacts.toml @@ -0,0 +1,6 @@ +[example] +git-tree-sha1 = "77138514a045ce9866f67252b58448fd7edef4ac" + + [[example.download]] + sha256 = "03a785e370b89a1fa467aee23e0711c52385a9893823198314e697199ea9faf1" + url = "https://gist.github.com/jonschumacher/031922964809632c4d2a80ccd5d90ad1/raw/77138514a045ce9866f67252b58448fd7edef4ac.tar.gz" \ No newline at end of file diff --git a/example/plotField.jl b/example/plotField.jl index ef030a0..a38f385 100644 --- a/example/plotField.jl +++ b/example/plotField.jl @@ -1,7 +1,11 @@ using PyPlot using LinearAlgebra +using Artifacts using MPISphericalHarmonics -field = SphericalHarmonicsDefinedField(".\\MPISphericalHarmonics.jl\\FFP000COMSOLOptimized_tDesgn_t=12_r=45.h5") +filename = joinpath(artifact"example", "FFP000COMSOLOptimized_tDesgn_t=12_r=45.h5") +field = SphericalHarmonicsDefinedField(filename) + +figure() imshow(norm.(field[-0.02:0.001:0.02, -0.02:0.001:0.02, 0])) \ No newline at end of file