Skip to content
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

Implement an_instance for more categories, and extend category_sample #15696

Open
nthiery opened this issue Jan 19, 2014 · 1 comment
Open

Implement an_instance for more categories, and extend category_sample #15696

nthiery opened this issue Jan 19, 2014 · 1 comment

Comments

@nthiery
Copy link
Contributor

nthiery commented Jan 19, 2014

category_sample should look deeper in the code to find categories. It
currently only looks into sage.categories.all, and misses axiom or
covariant functorial construction categories like Sets.Infinite or
Sets.CartesianProducts. It's not clear whether it should include
specialized categories like

sage.combinat.ncsf_qsym.generic_basis_code.BasesOfQSymOrNCSF

an_instance should be made to work at least for the categories
discovered by category_sample, and possibly more::

sage: Sets.CartesianProducts.an_instance()
...
TypeError: __init__() takes at least 2 arguments (1 given)

CC: @simon-king-jena

Component: categories

Issue created by migration from https://trac.sagemath.org/ticket/15696

@nthiery nthiery added this to the sage-6.1 milestone Jan 19, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@nthiery
Copy link
Contributor Author

nthiery commented Apr 16, 2015

comment:4

Attachment: all_categories.py.gz

Just for the record, I attach here a quick hack I did for my PyCon15 lightning talk to extract a graph of categories, by recursively extracting the functorial construction and axiom categories out of the main categories.

Progress note by the way: thanks to #18174, an_instance now works for most functorial constructions:

sage: Modules.Graded.an_instance()
Category of graded modules over Rational Field

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

No branches or pull requests

2 participants