Skip to content

Commit 1a26b5b

Browse files
committed
enh and compat on AMP
1 parent 7cab935 commit 1a26b5b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53"
4343
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
4444

4545
[compat]
46-
ApproxManifoldProducts = "0.4.11"
46+
ApproxManifoldProducts = "0.4.12"
4747
BSON = "0.2, 0.3"
4848
Combinatorics = "1.0"
4949
DataStructures = "0.16, 0.17, 0.18"

test/testFactorGradients.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ J = gradFct(measurement..., pts...)
5959

6060
## check on transmitted info per coords
6161

62-
ret = calcPerturbationFromVariable(gradFct, 1, [1;1])
62+
ret = calcPerturbationFromVariable(gradFct, [1=>[1;1]])
6363

6464
# the fromVar itself should be zero
6565
@test length(ret[1]) == 2
@@ -109,7 +109,7 @@ J = gradients(measurement..., pts...)
109109

110110
## check on transmitted info per coords
111111

112-
ret = calcPerturbationFromVariable(gradients, 1, [1;1])
112+
ret = calcPerturbationFromVariable(gradients, [1=>[1;1]])
113113

114114
# the fromVar itself should be zero
115115
@test length(ret[1]) == 2
@@ -121,7 +121,7 @@ ret = calcPerturbationFromVariable(gradients, 1, [1;1])
121121

122122
## check the reverse perturbation
123123

124-
ret = calcPerturbationFromVariable(gradients, 2, [1;1])
124+
ret = calcPerturbationFromVariable(gradients, [2=>[1;1]])
125125

126126
# only the first coordinate dimension is affected
127127
@test length(ret[1]) == 2

0 commit comments

Comments
 (0)