diff --git a/AbstractNFFTs/Project.toml b/AbstractNFFTs/Project.toml index 9db251c..443f371 100644 --- a/AbstractNFFTs/Project.toml +++ b/AbstractNFFTs/Project.toml @@ -1,13 +1,11 @@ name = "AbstractNFFTs" uuid = "7f219486-4aa7-41d6-80a7-e08ef20ceed7" author = ["Tobias Knopp "] -version = "0.8.1" +version = "0.8.2" [deps] -Graphics = "a2bd30eb-e257-5431-a919-1863eab51364" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" [compat] julia = "1.6" -Graphics = "1.0" diff --git a/AbstractNFFTs/src/AbstractNFFTs.jl b/AbstractNFFTs/src/AbstractNFFTs.jl index 8c1de72..f80e951 100644 --- a/AbstractNFFTs/src/AbstractNFFTs.jl +++ b/AbstractNFFTs/src/AbstractNFFTs.jl @@ -1,6 +1,5 @@ module AbstractNFFTs -using Graphics: @mustimplement using LinearAlgebra using Printf diff --git a/AbstractNFFTs/src/misc.jl b/AbstractNFFTs/src/misc.jl index c088b9e..83a9624 100644 --- a/AbstractNFFTs/src/misc.jl +++ b/AbstractNFFTs/src/misc.jl @@ -1,3 +1,14 @@ +# Macro to define interface function. Taking from Graphics.jl +macro mustimplement(sig) + fname = sig.args[1] + arg1 = sig.args[2] + if isa(arg1,Expr) + arg1 = arg1.args[1] + end + :($(esc(sig)) = error(typeof($(esc(arg1))), + " must implement ", $(Expr(:quote,fname)))) +end + # Precompute flags for the B matrix @enum PrecomputeFlags begin FULL = 1 diff --git a/Project.toml b/Project.toml index 86c076b..918e3bb 100644 --- a/Project.toml +++ b/Project.toml @@ -1,14 +1,13 @@ name = "NFFT" uuid = "efe261a4-0d2b-5849-be55-fc731d526b0d" authors = ["Tobias Knopp "] -version = "0.13" +version = "0.13.1" [deps] AbstractNFFTs = "7f219486-4aa7-41d6-80a7-e08ef20ceed7" Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" FLoops = "cc61a311-1640-44b5-9fba-1b764f453329" -Graphics = "a2bd30eb-e257-5431-a919-1863eab51364" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" @@ -25,7 +24,6 @@ BasicInterpolators = "0.6.5" DataFrames = "1.3.1" FFTW = "1.5" FLoops = "0.2" -Graphics = "0.4, 1.0" Reexport = "1.0" SpecialFunctions = "0.8, 0.10, 1, 2" julia = "1.6"