-
-
Notifications
You must be signed in to change notification settings - Fork 654
remove a deprecation simplicial complexes #39462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove a deprecation simplicial complexes #39462
Conversation
Documentation preview for this PR (built with commit 547b3a6; changes) is ready! 🎉 |
facets.append(tuple(["L" + str(v) for v in f])) | ||
for f in right._facets: | ||
facets.append(tuple(["R" + str(v) for v in f])) | ||
facets = [tuple(["L" + str(v) for v in f]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I think you can directly write
tuple("L" + str(v) for v in f)
to avoid building a list. - you could also use iterators and
itertools.chain
facetsL = (tuple("L" + str(v) for v in f) for f in self._facets)
facetsR = (tuple("R" + str(v) for v in f) for f in right._facets)
from itertools import chain
return SimplicialComplex(chain(facetsL, facetsR), is_mutable=is_mutable)
Well, these are minor possible improvements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merci pour la suggestion. Je l'ai suivi à moitié. C'est pas vraiment l'objectif principal ici
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
sagemathgh-39462: remove a deprecation simplicial complexes found using the scripts in sagemath#39262 ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#39462 Reported by: Frédéric Chapoton Reviewer(s): David Coudert, Frédéric Chapoton
sagemathgh-39462: remove a deprecation simplicial complexes found using the scripts in sagemath#39262 ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#39462 Reported by: Frédéric Chapoton Reviewer(s): David Coudert, Frédéric Chapoton
found using the scripts in #39262
📝 Checklist