Closed miquelramirez closed 5 years ago
I ran into a similar issue a couple of days, perhaps the method list_all_extensions
that I pushed into the lite
branch might be of use here? It is not particularly geared towards performance, truth to be told :-)
Ops, you're too fast, Miquel :-)
Hi @gfrances - a method like that would probably help simplifying print_init
significantly. In any case, the issue was very localised once I understood @emilkeyder explanation of the problem.
Problem: @emilkeyder is running into trouble using the FSTRIPS printing functions in
tarski.io.fstrips
due toprint_init
being out of step with the implementation of predicate and function extensions. The issue is that we needed to define as tuples ofTermReferences
the entries in the extensions of declared functions and predicates, but theprint_init
method is expecting raw terms in lines 88 to 96.Proposed fix: change the calls to
print_term_list
toprint_term_ref_list
inprint_init
.