You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WIthout the provenenance, this error on tuple size appears with no indication of cause
ctx = scallopy.ScallopContext()
ctx.add_relation("digit_1", int)
ctx.add_facts("digit_1", [(random.random(), (i,)) for i in range(4)])
yields
ctx.add_facts("digit_1", [(random.random(), (i,)) for i in range(4)])
File "/root/miniconda3/lib/python3.12/site-packages/scallopy/utils/history.py", line 23, in wrapper
return f(this, *pos_args, **kw_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/scallopy/context.py", line 555, in add_facts
self._internal.add_facts(relation, elems)
IndexError: Invalid tuple size
It is correct with this, but that wasn't clear.
ctx = scallopy.ScallopContext(provenance="topkproofs")
ctx.add_relation("digit_1", int)
ctx.add_facts("digit_1", [(random.random(), (i,)) for i in range(4)])
The text was updated successfully, but these errors were encountered:
WIthout the provenenance, this error on tuple size appears with no indication of cause
yields
It is correct with this, but that wasn't clear.
The text was updated successfully, but these errors were encountered: