Skip to content

Commit

Permalink
add test for nodes to gradients and convers
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjaffray committed Jan 30, 2024
1 parent a6b15cb commit 5080cd5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/testMRIGradients.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ function test_grads()

@test abs.(correctedGradients[end] - -0.0258168) < 1e-6

nodes = gradients_to_nodes(ones(2,1) .* correctedGradients')

gradients = nodes_to_gradients(nodes)

@test sqrt.(sum(abs2,ones(2,1).*correctedGradients' - gradients)) < 1e-9

end

function test_display_girf()
Expand Down

0 comments on commit 5080cd5

Please sign in to comment.