Skip to content

Commit

Permalink
Switch to artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschumacher committed Sep 28, 2023
1 parent 9325245 commit b74ca59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions example/Artifacts.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[example]
git-tree-sha1 = "77138514a045ce9866f67252b58448fd7edef4ac"

[[example.download]]
sha256 = "03a785e370b89a1fa467aee23e0711c52385a9893823198314e697199ea9faf1"
url = "https://gist.github.com/jonschumacher/031922964809632c4d2a80ccd5d90ad1/raw/77138514a045ce9866f67252b58448fd7edef4ac.tar.gz"
6 changes: 5 additions & 1 deletion example/plotField.jl
Original file line number Diff line number Diff line change
@@ -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]))

0 comments on commit b74ca59

Please sign in to comment.