On May 26, 3:19 pm, davidp <[email protected]> wrote:
> Should there be a facets method?  Should self.facets be self._facets?
>
> sage: version()
> 'Sage Version 4.0.rc0, Release Date: 2009-05-21'
> sage: s = SimplicialComplex(4, [[1,2], [1,4]])
> sage: s.facets()
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call
> last)
>
> /home/davidp/.sage/temp/poly/15731/
> _home_davidp_math_sandpile_sage_sage_sandpile1_4_sandpile_sage_250.py
> in <module>()
>
> TypeError: 'list' object is not callable
> sage: s.facets
> [(1, 2), (1, 4)]
>
> Dave

I would point out that there is a maximal_faces() method, which just
returns the set of facets.  But if you want to change the 'facets'
attribute to '_facets' and then make 'facets' a synonym for
'maximal_faces', that's fine with me.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to