Skip to content

Commit

Permalink
Fix lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Oct 10, 2024
1 parent dc3487f commit e7e1ce2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions R/sampler-nested-adaptive.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ monty_sampler_nested_adaptive <- function(initial_vcv,
state <- list(pars = pars, density = c(density))
## TODO: mrc-5862
if (model$properties$has_observer) {
state$observation <- m$observer$observe()
state$observation <- model$observer$observe()
}
state
}
Expand Down Expand Up @@ -204,7 +204,7 @@ monty_sampler_nested_adaptive <- function(initial_vcv,
internal$density_by_group <- density_by_group_next
## TODO: mrc-5862
if (model$properties$has_observer) {
state$observation <- m$observer$observe()
state$observation <- model$observer$observe()
}
}
} else {
Expand Down Expand Up @@ -278,7 +278,7 @@ monty_sampler_nested_adaptive <- function(initial_vcv,
internal$density_by_group <- density_by_group_next
## TODO: mrc-5862
if (model$properties$has_observer) {
state$observation <- m$observer$observe()
state$observation <- model$observer$observe()
}
}

Expand Down
6 changes: 3 additions & 3 deletions R/sampler-nested-random-walk.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ monty_sampler_nested_random_walk <- function(vcv, boundaries = "reflect") {
state <- list(pars = pars, density = c(density))
## TODO: mrc-5862
if (model$properties$has_observer) {
state$observation <- m$observer$observe()
state$observation <- model$observer$observe()
}
state
}
Expand Down Expand Up @@ -166,7 +166,7 @@ monty_sampler_nested_random_walk <- function(vcv, boundaries = "reflect") {
internal$density_by_group <- density_by_group_next
## TODO: mrc-5862
if (model$properties$has_observer) {
state$observation <- m$observer$observe()
state$observation <- model$observer$observe()
}
}
}
Expand Down Expand Up @@ -233,7 +233,7 @@ monty_sampler_nested_random_walk <- function(vcv, boundaries = "reflect") {
internal$density_by_group <- density_by_group_next
## TODO: mrc-5862
if (model$properties$has_observer) {
state$observation <- m$observer$observe()
state$observation <- model$observer$observe()
}
}
state
Expand Down

0 comments on commit e7e1ce2

Please sign in to comment.