Skip to content

Remove confusion in gap interface conversion method #39909

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

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

user202729
Copy link
Contributor

@user202729 user202729 commented Apr 8, 2025

See the documentation changes in the issue below for an explanation why this change is correct. Basically _gap_ must take in an interface object and return element of that object; while _libgap_ must take no argument and return libgap element.

Also make IncidenceStructure inherit from SageObject — as noted in the documentation of SageObject, all objects visible to the user ought to inherit from it.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

#39905

Not strictly necessary, but useful to see why this change is correct.

Copy link

github-actions bot commented Apr 8, 2025

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

@fchapoton fchapoton self-assigned this May 24, 2025

TESTS::

sage: BD._gap_init_()
Copy link
Contributor

Choose a reason for hiding this comment

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

you need to copy here the optional tag and the definition of BD

Copy link
Contributor Author

@user202729 user202729 May 24, 2025

Choose a reason for hiding this comment

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

This bug is non-critical, (if I recalled correctly from the last time I work on this) there are too many code that relies on x._gap_() with no argument does the wrong thing (see the other test failures) and I just haven't gotten around to fix them yet since it sounds like a lot of work.

Maybe it's better to review the dependency (#39905) first (which is ready).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy