Skip to content

Commit

Permalink
remove (heavy) Graphics.jl dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tknopp committed Oct 9, 2022
1 parent 10a3751 commit 5f3dc6c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
4 changes: 1 addition & 3 deletions AbstractNFFTs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name = "AbstractNFFTs"
uuid = "7f219486-4aa7-41d6-80a7-e08ef20ceed7"
author = ["Tobias Knopp <tobias@knoppweb.de>"]
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"
1 change: 0 additions & 1 deletion AbstractNFFTs/src/AbstractNFFTs.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module AbstractNFFTs

using Graphics: @mustimplement
using LinearAlgebra
using Printf

Expand Down
11 changes: 11 additions & 0 deletions AbstractNFFTs/src/misc.jl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name = "NFFT"
uuid = "efe261a4-0d2b-5849-be55-fc731d526b0d"
authors = ["Tobias Knopp <tobias@knoppweb.de>"]
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"
Expand All @@ -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"
Expand Down

4 comments on commit 5f3dc6c

@tknopp
Copy link
Member Author

@tknopp tknopp commented on 5f3dc6c Oct 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register subdir=AbstractNFFTs

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/69798

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a AbstractNFFTs-v0.8.2 -m "<description of version>" 5f3dc6cd42143f372096f2853288b29dffdcb585
git push origin AbstractNFFTs-v0.8.2

@tknopp
Copy link
Member Author

@tknopp tknopp commented on 5f3dc6c Oct 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/69799

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.13.1 -m "<description of version>" 5f3dc6cd42143f372096f2853288b29dffdcb585
git push origin v0.13.1

Please sign in to comment.