Open murphyk opened 1 year ago
Thanks for the report. I was able to reproduce the problem. I think it comes from how random variables are handling queries. Contrary to previous issue, its fix would require a bit more time as it also overlaps with the refactoring. I'll add a test for this case, and keep this issue open, until the test pass.
Every time you ask for a query, it mutates the state of the model, so asking the same question twice causes a crash. For example, consider https://github.com/D-K-E/graphical-models/blob/master/examples/LWFChainGraphs.ipynb. Now simply re-execute the final 2 lines
You wll get the error