-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModelTesting-functions tutorial fails with error #247
Comments
Thanks for the bug report, @johnkgamble. I can reproduce this on the latest version of the master branch and also confirmed that the notebook works as of pygsti 0.9.10.post4. I dug into this a bit more and I'm pretty sure this was broken by this commit: 78a357a on March 15th. This commit removed I can see us fixing this a couple ways. 1) We could add some plumbing in run_model_test to pass in a target model. A target model isn't always a well-defined concept in the model testing setting, however. 2) We could stick the call to Any other places in the code that assume the existence of a target model? Maybe we should do a scan for these down the road. |
@coreyostrove , thanks for the follow-up. This isn't critical for me right now, but I think that this example should be removed at the very least. Have the pygsti devs considered running the notebooks in CI? I can't think of another way to keep regressions like this from happening in the future. I've set up things like this before, so I'm happy to have a discussion about it if you're interested. |
Yes we have considered running the Jupyter notebooks in CI, it just hasn't been a high priority. I'll revisit that the next time I have a few extra cycles. :) |
A patch for this issue with the ModelTest not getting passed in a target model exists on the branch feature-circuitlistsdesign-reporting included in commit 7c1e01b. Once this branch gets merged in we should be good to go. P.S. We have automated notebook regression testing up and running on the latest version of develop, so we should be better equipped to catch these problems going forward. |
Describe the bug
The fifth code cell on the ModelTesting-functions fails when run.
To Reproduce
Launch the ModelTesting-functions and execute the cells in the notebook. Cell 5 gives:
Expected behavior
I would expect a report to be generated and open.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: