MCPcopy Create free account
hub / github.com/caelan/pddlstream / next_optimistic

Method next_optimistic

pddlstream/language/function.py:112–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110 self.successful |= any(r.is_successful() for r in new_results)
111 return new_results, new_facts
112 def next_optimistic(self):
113 if self.enumerated or self.disabled:
114 return []
115 # TODO: cache this value
116 opt_value = self.external.opt_fn(*self.get_input_values())
117 self.opt_results = [self._Result(self, opt_value, optimistic=True)]
118 return self.opt_results
119 def __repr__(self):
120 return '{}=?{}'.format(str_from_head(self.head), self.external.codomain.__name__)
121

Callers

nothing calls this directly

Calls 1

get_input_valuesMethod · 0.80

Tested by

no test coverage detected