alarm-redist / redist

Simulation methods for legislative redistricting.
https://alarm-redist.github.io/redist/
GNU General Public License v2.0
66 stars 23 forks source link

Summary function errors out when using `init_particles` #142

Closed CoryMcCartan closed 2 years ago

CoryMcCartan commented 2 years ago

Summary function errors out partway through when using init_particles

plans <- redist_smc(map, nsims = nsims * 2, runs = 1L, ncores = 2,
    counties = county, verbose = TRUE,
    constraints = constraints, 
    init_particles = prep_mat,
    pop_temper = pop_temp)

summary(plans)
#' SMC: 10,000 sampled plans of 38 districts on 9,007 units
#' `adapt_k_thresh`=0.985 • `seq_alpha`=0.5
#' `est_label_mult`=1 • `pop_temper`=0.02
#' 
#' Plan diversity 80% range: 0.063 to 0.880
#' 
#' Error in `.rowNamesDF<-`(x, value = value) : invalid 'row.names' length