(model)
return d
Save the preprocessor list to a dict.
Save the preprocessor list to a dict.
Save the preprocessor list to a dict .
def save(model):
        """Save the preprocessor list to a dict."""
        d = {"name": ""}
        preprocessors = []
        for i in range(model.rowCount()):
            item = model.item(i)
            pp_def = item.data(DescriptionRole)
            params = item.data(ParametersRole)
            preprocessors.append((pp_def.qualname, params))

        d["preprocessors"] = preprocessors
        return d
def save ( model ) : d = { "name" : "" } preprocessors = [ ] for i in range ( model . rowCount ( ) ) : item = model . item ( i ) pp_def = item . data ( DescriptionRole ) params = item . data ( ParametersRole ) preprocessors . append ( ( pp_def . qualname , params ) ) d [ "preprocessors" ] = preprocessors return d