Getting the current sample variable value so it can be used to compute the observed inputs in a secondary model likelihood

Dont subtract the test_value - it is in most case a constant for shape/value checking. I think in you case it should work by doing: emission_obs = obs_flux - continuum_flux.

1 Like