Skip to content

Commit 1a2546c

Browse files
committed
add chainrules testing packages
1 parent 7ea628d commit 1a2546c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[deps]
2+
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
23
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
34
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
45
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
56
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
67

78
[compat]
9+
ChainRulesCore = "1"
10+
ChainRulesTestUtils = "1"
811
RecipesBase = "1"
912
StaticArrays = "0.12, 1"

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using ChainRulesCore
2+
using ChainRulesTestUtils
13
using PSFModels
24
using PSFModels: Gaussian, Normal, AiryDisk, Moffat
35
using StaticArrays
@@ -68,6 +70,10 @@ function test_model_interface(K)
6870
@test m(m.pos) BigFloat(1)
6971
end
7072

73+
function test_model_grads(K)
74+
75+
end
76+
7177
@testset "Model Interface - $K" for K in (Gaussian, AiryDisk, Moffat)
7278
test_model_interface(K)
7379
end

0 commit comments

Comments
 (0)