def generate(self):
    if self.variable_mods:
        self.variable_mod_generate_scenarios()
        for i in self.explore_scenarios():
            a = dict(self.static_mod_position_dict)
            a.update(i)
            serialized_a = ordered_serialize_position_dict(a)
            if (serialized_a not in self.used_scenarios_set):
                self.used_scenarios_set.add(serialized_a)
                (yield a)
    else:
        serialized_a = ordered_serialize_position_dict(self.static_mod_position_dict)
        if (serialized_a not in self.used_scenarios_set):
            (yield self.static_mod_position_dict)
def generate(self):
    if self.variable_mods:
        self.variable_mod_generate_scenarios()
        for i in self.explore_scenarios():
            a = dict(self.static_mod_position_dict)
            a.update(i)
            serialized_a = ordered_serialize_position_dict(a)
            if (serialized_a not in self.used_scenarios_set):
                self.used_scenarios_set.add(serialized_a)
                (yield a)
    else:
        serialized_a = ordered_serialize_position_dict(self.static_mod_position_dict)
        if (serialized_a not in self.used_scenarios_set):
            (yield self.static_mod_position_dict)