code: def apply_dmaglim(self,dmaglim=None):
          
          raise NotImplementedError
          if 'bright blend limit' not in self.constraints:
              self.constraints.append('bright blend limit')
          for pop in self.poplist:
              if not hasattr(pop,'dmaglim') or pop.is_specific:
                  continue
              if dmaglim is None:
                  dmag = pop.dmaglim
              else:
                  dmag = dmaglim
              pop.set_dmaglim(dmag)
          self.dmaglim = dmaglim
docs: Applies a constraint that sets the maximum brightness for non-target star
  
          :func:`stars.StarPopulation.set_dmaglim` not yet implemented.