code: def remove_population(self,pop):
          
          iremove=None
          for i in range(len(self.poplist)):
              if self.modelnames[i]==self.poplist[i].model:
                  iremove=i
          if iremove is not None:
              self.modelnames.pop(i)
              self.shortmodelnames.pop(i)
              self.poplist.pop(i)
docs: Removes population from PopulationSet