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 May 30, 2024
1 parent 580b3c6 commit 9b98d04
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 @@ -261,7 +261,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 9b98d04

Please sign in to comment.