Closed githubpsyche closed 4 years ago
My test code for compute_likelihood
relies on a data file that doesn't exist yet. I suppose I can easily generate it, though? Just run the matlab version up to the first call in matlab's importance_sampler
and then bail?
The trouble was that np.where
(as well as np.nonzero
, a close relative) returns a tuple instead of a vector or array; I have to pull the vector out of that tuple for my code to work.
From executing
importance_sampler
.