Skip to content

Commit

Permalink
adjust unit test to ensure correct run when inverting prospect
Browse files Browse the repository at this point in the history
expect_true(abs(leafBP$CAR-BPinit$CAR)<1e-3)
  • Loading branch information
jbferet committed Jan 5, 2024
1 parent bc81ef8 commit dcc714c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-Invert_PROSPECT.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test_that("PROSPECT-D inversion produces accurate biophysical assessment", {
Tran = lrt$Transmittance)
expect_true(abs(leafBP$N-BPinit$N)<1e-5)
expect_true(abs(leafBP$CHL-BPinit$CHL)<1e-3)
expect_true(abs(leafBP$CAR-BPinit$CAR)<1e-4)
expect_true(abs(leafBP$CAR-BPinit$CAR)<1e-3)
expect_true(abs(leafBP$ANT-BPinit$ANT)<1e-4)
expect_true(abs(leafBP$EWT-BPinit$EWT)<1e-6)
expect_true(abs(leafBP$LMA-BPinit$LMA)<1e-6)
Expand Down

0 comments on commit dcc714c

Please sign in to comment.