eta.util.tt.parse.read_preds_file

read_preds_file(fname)[source]

Read a Python file containing predicate function definitions, and return a predicate dict.

Parameters:

fname (str) – The filename to read.

Returns:

preds – A dict mapping predicate names to functions.

Return type:

dict