Closed ivanjut closed 7 years ago
can you paste the actual text?
just from the error message my guess would be that ur trying to do something (say ask for symbols) but the list of symbols u are giving is smaller than the number of symbols in total in the list. Is that what ur doing @ivanjut
@ivanjut don't do something like avoid the debugging flag, lets try to fix this rather than ignoring the issue, it will be very hard to find issues like that later if people ignore them (hope no one else is doing that).
if self.debug:
x, y, z = symbols('x y z')
else:
x, y, z = self.get_symbols(3)
This is what I was using, just asking for 3 symbols from the default symbol list.
@ivanjut that should not be returning an error....can you try documenting or at least writing what script does this so we can replicate the bug?
This was resolved as ivan's problem was running out of generated variables. If this issue comes up again we should make the library more robust in this regard.
Sometimes when using the self.get_symbols() function in my consistent variables, I get a value error that says 'Sample larger than population or is negative'. I found that simply not using the get_symbols function and not making a distinction between the debugging version of my variables fixes this issue, but I don't know why.