New answers tagged

2

Don't use a global. Just create a dictionary whenever you need to access parameters, e.g. in updateParameters, updateMessages, execute, etc: parameters = {p.name: p for p in parameters} e.g. def updateParameters(self, parameters): parameters = {p.name: p for p in parameters} etc... def updateMessages(self, parameters): parameters = {p.name: p ...


Top 50 recent answers are included