code: def add_locations(self, pores=[], throats=[]):
          r
          boss = self.project.find_full_domain(self)
          pores = boss._parse_indices(pores)
          throats = boss._parse_indices(throats)
          if len(pores) > 0:
              self._set_locations(element='pore', indices=pores, mode='add')
          if len(throats) > 0:
              self._set_locations(element='throat', indices=throats, mode='add')
docs: r"""
          Adds associations between an object and its boss object at the
          given pore and/or throat locations.
  
          Parameters
          ----------
          pores and throats : array_like
              The pore and/or throat locations for which the association should
              be added.  These indices are for the full domain.
  
          Notes
          -----
          For *Physics* objects, the boss is the *Phase* with which it was
          assigned, while for *Geometry* objects the boss is the *Network*.