def variable_assignments( self, *, ontology: Ontology, object_variables: AbstractSet["TemplateObjectVariable"], property_variables: AbstractSet["TemplatePropertyVariable"], action_variables: AbstractSet["TemplateActionTypeVariable"], chooser: SequenceChooser, # pylint: disable=unused-argument ) -> Iterable[TemplateVariableAssignment]: # TODO: fix hard-coded rng # https://github.com/isi-vista/adam/issues/123 rng = Random() rng.seed(0) for object_combination in self._all_combinations(object_variables, ontology=ontology, rng=rng): for property_combination in self._all_combinations( property_variables, ontology=ontology, rng=rng): for action_combination in self._all_combinations( action_variables, ontology=ontology, rng=rng): yield TemplateVariableAssignment( object_variables_to_fillers=object_combination, property_variables_to_fillers=property_combination, action_variables_to_fillers=action_combination, )
c = skip if x[1] == "03": if not (a < b): c = skip if x[1] == "10": if not (a >= b): c = skip if x[1] == "11": if not (a <= b): c = skip elif t == "22": stack.append(rand(8)) elif t == "23": r.seed(num(x[1:])) elif t == "30": check(1) if x[1] == "00": print(chr(stack.pop(-1)), end="") stdout.flush() elif x[1] == "10": print(bin(stack.pop(-1))[2:], end="") stdout.flush() elif x[1] == "11": print(oct(stack.pop(-1))[2:], end="") stdout.flush() elif x[1] == "12": print(stack.pop(-1), end="") stdout.flush()