code: def has_isotropic_cells(self):
          
          return self.is_uniform and np.allclose(self.cell_sides[:-1],
                                                 self.cell_sides[1:])
docs: ``True`` if `grid` is uniform and `cell_sides` are all equal.
  
          Always ``True`` for 1D partitions.
  
          Examples
          --------
          >>> part = uniform_partition([0, -1], [1, 1], (5, 10))
          >>> part.has_isotropic_cells
          True
          >>> part = uniform_partition([0, -1], [1, 1], (5, 5))
          >>> part.has_isotropic_cells
          False