Skip to content

Commit 5f3dc6c

Browse files
committed
remove (heavy) Graphics.jl dependency
1 parent 10a3751 commit 5f3dc6c

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

AbstractNFFTs/Project.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name = "AbstractNFFTs"
22
uuid = "7f219486-4aa7-41d6-80a7-e08ef20ceed7"
33
author = ["Tobias Knopp <[email protected]>"]
4-
version = "0.8.1"
4+
version = "0.8.2"
55

66
[deps]
7-
Graphics = "a2bd30eb-e257-5431-a919-1863eab51364"
87
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
98
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
109

1110
[compat]
1211
julia = "1.6"
13-
Graphics = "1.0"

AbstractNFFTs/src/AbstractNFFTs.jl

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module AbstractNFFTs
22

3-
using Graphics: @mustimplement
43
using LinearAlgebra
54
using Printf
65

AbstractNFFTs/src/misc.jl

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Macro to define interface function. Taking from Graphics.jl
2+
macro mustimplement(sig)
3+
fname = sig.args[1]
4+
arg1 = sig.args[2]
5+
if isa(arg1,Expr)
6+
arg1 = arg1.args[1]
7+
end
8+
:($(esc(sig)) = error(typeof($(esc(arg1))),
9+
" must implement ", $(Expr(:quote,fname))))
10+
end
11+
112
# Precompute flags for the B matrix
213
@enum PrecomputeFlags begin
314
FULL = 1

Project.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
name = "NFFT"
22
uuid = "efe261a4-0d2b-5849-be55-fc731d526b0d"
33
authors = ["Tobias Knopp <[email protected]>"]
4-
version = "0.13"
4+
version = "0.13.1"
55

66
[deps]
77
AbstractNFFTs = "7f219486-4aa7-41d6-80a7-e08ef20ceed7"
88
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
99
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
1010
FLoops = "cc61a311-1640-44b5-9fba-1b764f453329"
11-
Graphics = "a2bd30eb-e257-5431-a919-1863eab51364"
1211
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1312
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1413
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
@@ -25,7 +24,6 @@ BasicInterpolators = "0.6.5"
2524
DataFrames = "1.3.1"
2625
FFTW = "1.5"
2726
FLoops = "0.2"
28-
Graphics = "0.4, 1.0"
2927
Reexport = "1.0"
3028
SpecialFunctions = "0.8, 0.10, 1, 2"
3129
julia = "1.6"

0 commit comments

Comments
 (0)