Skip to content

Commit

Permalink
Fix indexing on grid outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannic committed Jan 24, 2024
1 parent 4d2b3ae commit fdacaa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ grid_renderer <- function(
counts <- grid_count(birth, target, timestep, weights)
for (i in seq_along(counts)) {
renderer$render(
paste0('grid_', prefix, i),
paste0('grid_', prefix, i - 1),
counts[[i]],
timestep
)
Expand Down

0 comments on commit fdacaa4

Please sign in to comment.