message: small fix on Cubical
diff: @@ -202,8 +202,12 @@ def _Cubical(X, dim, card):
  # Compute the persistence pairs with Gudhi
  cc = CubicalComplex(dimensions=X.shape, top_dimensional_cells=X.flatten())
  cc.persistence()
  + try:
  cof = cc.cofaces_of_persistence_pairs()[0][dim]
  + except IndexError:
  + cof = np.array([])
  + if len(cof) > 0:
  # Sort points with distance-to-diagonal
  Xs = X.shape
  pers = [X[np.unravel_index(cof[idx,1], Xs)] - X[np.unravel_index(cof[idx,0], Xs)] for idx in range(len(cof))]
  