File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,6 @@ def _create_components(self):
494494 for cname , component in components :
495495 self ._components .append (component )
496496 setup_tunables (component , cname , "components" )
497- self ._feedbacks += collect_feedbacks (component , cname , "components" )
498497 self ._setup_vars (cname , component )
499498 self ._setup_reset_vars (component )
500499
@@ -510,8 +509,11 @@ def _create_components(self):
510509
511510 # Call setup functions for components
512511 for cname , component in components :
513- if hasattr (component , "setup" ):
514- component .setup ()
512+ setup = getattr (component , "setup" , None )
513+ if setup is not None :
514+ setup ()
515+ # ... and grab all the feedback methods
516+ self ._feedbacks += collect_feedbacks (component , cname , "components" )
515517
516518 # Call setup functions for autonomous modes
517519 for mode in self ._automodes .modes .values ():
You can’t perform that action at this time.
0 commit comments