[sage-devel] Re: Simplicial complexes' .faces(subcomplex) breaks self?

2017-04-26 Thread Mikhail Tyomkin
Thanks for the quick reply, John, and for the package as well. On Wednesday, April 26, 2017 at 10:55:16 PM UTC+3, John H Palmieri wrote: > > This can be fixed by changing (on line 2554) "L.faces()[dim]" to > "L.n_cells(dim)". See https://trac.sagemath.org/ticket/22880 > > -- > John > > > > On

[sage-devel] Re: Simplicial complexes' .faces(subcomplex) breaks self?

2017-04-26 Thread John H Palmieri
This can be fixed by changing (on line 2554) "L.faces()[dim]" to "L.n_cells(dim)". See https://trac.sagemath.org/ticket/22880 -- John On Wednesday, April 26, 2017 at 12:17:13 PM UTC-7, Mikhail Tyomkin wrote: > > Hi everyone. > > The following code raises a KeyError on the last line (say, in

[sage-devel] Simplicial complexes' .faces(subcomplex) breaks self?

2017-04-26 Thread Mikhail Tyomkin
Hi everyone. The following code raises a KeyError on the last line (say, in SageMathCell ): X = SimplicialComplex ([[0], [1]]) print (X.faces (SimplicialComplex ())) X.add_face ([0, 1]) {0: set([(0,), (1,)]), -1: set([])}

[sage-devel] Bug in average_distance(), by_weight parameter is ignored

2017-04-26 Thread Sebastian Smith
Hi, I ran across a bug in the graph.average_distance() function. It appears to ignore the by_weight parameter and defaults to False, even if the edge labels are weights. The segment of code that produced the error: # These incorrectly give the same value realG.average_distance(by_weight =

Re: [sage-devel] first python3 build of sage

2017-04-26 Thread Vincent Delecroix
I don't think clean_stale_files is to blame. It is removing the build files. What is wrong is that the relevant file are *not* installed before. I guess it is a problem in the install.run() method. Vincent On 25/04/2017 21:14, Frédéric Chapoton wrote: Thanks for the hint, Salvatore !