I am using Truths class to generate a truth table : https://github.com/tr3buchet/truths
However I could not enumerate all rows or extract rows with correct evaluation of expression? Is there a way to do that ?
I received this error : AttributeError: 'Truths' object has no attribute 'rows' thanks in advance
I can only get the table printed but I could not change it ?
how can I extracted specific rows from table ?
A
Truthsobject stores almost exclusively the information that is provided during initialization. That is: thebaseitems, thephrases(optional) and theints(also optional). The only other things are:base_conditions, which stores the part of the table with thebasecolumnsThe latter one can be accessed like this:
The rest of the table is generated on the fly when the table is printed.
If you have not done it already, have a look at the code in the git repository.