code: def _get_enum_bins(configfile):
      
      config = yaml.safe_load(open(configfile))
  
      emin = config['selection']['emin']
      emax = config['selection']['emax']
      log_emin = np.log10(emin)
      log_emax = np.log10(emax)
      ndec = log_emax - log_emin
      binsperdec = config['binning']['binsperdec']
      nebins = int(np.round(binsperdec * ndec))
  
      return nebins
docs: Get the number of energy bin in the SED
  
      Parameters
      ----------
  
      configfile : str
          Fermipy configuration file.
  
      Returns
      -------
  
      nbins : int
          The number of energy bins