Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add working example #17

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]))
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const tmpdir = @get_scratch!("tmp")

@testset "MPISphericalHarmonics.jl" begin
@testset "Aqua" begin
Aqua.test_all(MPISphericalHarmonics, ambiguities=false)
Aqua.test_all(MPISphericalHarmonics)
end

@testset "Ideal Coefficents" begin
Expand Down