code: def old_indices(self, names, axis=None):
          
          warnings.warn("Matrix.old_indices() is deprecated - only here for testing. Use Matrix.indices()",PyemuWarning)
          row_idxs, col_idxs = [], []
          for name in names:
              if name.lower() not in self.col_names \
                      and name.lower() not in self.row_names:
                  raise Exception('Matrix.indices(): name not found: ' + name)
              if name.lower() in self.col_names:
                  col_idxs.append(self.col_names.index(name))
              if name.lower() in self.row_names:
                  row_idxs.append(self.row_names.index(name))
          if axis is None:
              return np.array(row_idxs, dtype=np.int32),\
                  np.array(col_idxs, dtype=np.int32)
          elif axis == 0:
              if len(row_idxs) != len(names):
                  raise Exception("Matrix.indices(): " +
                                  "not all names found in row_names")
              return np.array(row_idxs, dtype=np.int32)
          elif axis == 1:
              if len(col_idxs) != len(names):
                  raise Exception("Matrix.indices(): " +
                                  "not all names found in col_names")
              return np.array(col_idxs, dtype=np.int32)
          else:
              raise Exception("Matrix.indices(): " +
                              "axis argument must 0 or 1, not:" + str(axis))
docs: get the row and col indices of names. If axis is None, two ndarrays
                  are returned, corresponding the indices of names for each axis
  
          Parameters
          ----------
          names : iterable
              column and/or row names
          axis : (int) (optional)
              the axis to search.
  
          Returns
          -------
          numpy.ndarray : numpy.ndarray
              indices of names.