def test_strip_agent_context(): st_out = ac.strip_agent_context([st11]) assert (len(st_out) == 1) assert (not st_out[0].sub.mods) assert (not st_out[0].sub.mutations) assert (not st_out[0].sub.bound_conditions) assert (not st_out[0].sub.activity) assert (not st_out[0].sub.location)
def test_strip_agent_context(): st_out = ac.strip_agent_context([st11]) assert len(st_out) == 1 assert not st_out[0].sub.mods assert not st_out[0].sub.mutations assert not st_out[0].sub.bound_conditions assert not st_out[0].sub.activity assert not st_out[0].sub.location
def assemble_cx(stmts, out_file): """Return a CX assembler.""" stmts = ac.filter_belief(stmts, 0.95) stmts = ac.filter_top_level(stmts) stmts = ac.strip_agent_context(stmts) ca = CxAssembler() ca.add_statements(stmts) model = ca.make_model() ca.save_model(out_file) return ca