Skip to content
Permalink
Browse files
[processing] fixed I/O of models
  • Loading branch information
volaya committed Apr 20, 2017
1 parent 54e30b9 commit e5dd93663ee874b89d00fe54f2892cea92acfe9c
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/modeler/ModelerAlgorithm.py
@@ -573,7 +573,7 @@ def getParameterDescriptions(self):
return descs

def todict(self):
keys = ["inputs", "group", "name", "algs", "helpContent"]
keys = ["inputs", "_group", "_name", "algs", "helpContent"]
return {k: v for k, v in list(self.__dict__.items()) if k in keys}

def toJson(self):
@@ -632,7 +632,8 @@ def _import(name):
except Exception as e:
raise WrongModelException(e.args[0])

model._name = model.modeler_name
if hasattr(model, "modeler_name"):
model._name = model.modeler_name
return model

@staticmethod

0 comments on commit e5dd936

Please sign in to comment.