code: def setConf(self, conf, type='simu'):
          
          if conf is None:
              return
          else:
              if isinstance(conf, str):
                  conf = MagBlock.str2dict(conf)
              self.setConfDict[type](conf)
docs: set information for different type dict,
  
          :param conf: configuration information, str or dict
          :param type: simu, ctrl, misc