Error message in surveillance_add_rc_new_row() function
Closed this issue · 1 comments
Hanmeng-Xu commented
I got some error messages like this when running a campaign default scenario for COD, gave me something like this:
Wondering if Kaiyue has encountered this or not, as I haven't changed the code. I think these few lines can be fixed:
-
line 553 Change
true_confirm_rate_admin1 <- rc_list[[layer_idx]]$rc1$true_confirm_rate
to something liketrue_confirm_rate_admin1 <- head(rc_list[[layer_idx]]$rc1, nrow(shp1))$true_confirm_rate
; -
line 557 change
true_confirm_rate_admin2 <- rc_list[[layer_idx]]$rc2$true_confirm_rate
to something liketrue_confirm_rate_admin2 <- head(rc_list[[layer_idx]]$rc2, nrow(shp2))$true_confirm_rate
I changed the code like above and can run without the error.
KaiyueZou commented
suggestions taken, issue solved