HopkinsIDD/gavi_vimc_cholera

Error message in surveillance_add_rc_new_row() function

Closed this issue · 1 comments

I got some error messages like this when running a campaign default scenario for COD, gave me something like this:
截屏2022-06-23 上午9 32 46

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 like true_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 like true_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.

suggestions taken, issue solved