Ver Fonte

Fix CfgProcParamWidget for mixin transition

Michael Hanke há 1 ano atrás
pai
commit
c4b0530e34
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      datalad_gooey/param_widgets.py

+ 1 - 2
datalad_gooey/param_widgets.py

@@ -410,9 +410,8 @@ class CfgProcParamWidget(ChoiceParamWidget):
     """Choice widget with items from `run_procedure(discover=True)`"""
     """Choice widget with items from `run_procedure(discover=True)`"""
     def __init__(self, choices=None, parent=None):
     def __init__(self, choices=None, parent=None):
         super().__init__(parent=parent)
         super().__init__(parent=parent)
-        self.init_gooey_from_params({})
 
 
-    def init_gooey_from_params(self, spec: Dict) -> None:
+    def _init_gooey_from_other_params(self, spec: Dict) -> None:
         if self.count() and 'dataset' not in spec:
         if self.count() and 'dataset' not in spec:
             # we have items and no context change is required
             # we have items and no context change is required
             return
             return