Skip to content

Conversation

fchapoton
Copy link
Contributor

found using the scripts in #39262

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.

Copy link

github-actions bot commented Feb 6, 2025

Documentation preview for this PR (built with commit 547b3a6; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

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])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I think you can directly write tuple("L" + str(v) for v in f) to avoid building a list.
  2. 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.

Copy link
Contributor Author

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

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

vbraun pushed a commit to vbraun/sage that referenced this pull request Feb 9, 2025
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
vbraun pushed a commit to vbraun/sage that referenced this pull request Feb 9, 2025
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
@vbraun vbraun merged commit 77d4ebb into sagemath:develop Feb 10, 2025
22 of 24 checks passed
@fchapoton fchapoton deleted the deprecation_removal_simplicial branch February 11, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants