def set_option(self, option, value, x=None):
        o = self.config_model
        d = self.data
        if x is None:
            o.set_key('techs.' + option, value)
        else:  # Setting a specific x
            d.locations.at[x, '_override.' + option] = value
        self.flush_option_cache()
Remove all children from the item.
dataset/ETHPy150Open calliope-project/calliope/calliope/core.py/Model.set_option--crossover with--dataset/ETHPy150Open xraypy/xraylarch/lib/wxlib/larchfilling.py/FillingTree.OnItemCollapsed