Closed Nowzerix closed 7 years ago
After a quick look, I think the problem is possibly that your variable data
is more than 1-dimensional when this error is thrown, which is not supported (ie np.ndim(data)
should be less than 2).
This is happening on line 674 of abstract_model.py
when it is checking which measurement outcomes are 0, and which are 1, which gives the same error as follows:
a=np.array([[0,1],[0,1]])
if a[0] == 0:
pass
(If this doesn't fix the problem, we might need some example code that raises this error)
Alright, caught the bug in my code. It's so much easier when I know what I'm looking for. Thanks a bunch.
Hi all, I'm getting an error with qinfer that I don't know what to do with. Sometimes this gets thrown, sometimes not. I was wondering if someone could have a look at it. I am using the TomographyModel with my own heuristic.