-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
ManifoldSubset: Change some methods to generators #31718
Comments
This comment has been minimized.
This comment has been minimized.
New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
Author: Matthias Koeppe |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Reviewer: Eric Gourgoulhon |
comment:8
LGTM. Thanks! |
comment:9
Thanks for reviewing! |
comment:10
I assume it has a purpose, but just out of curiosity: why do you make a difference between families of manifold objects and families of manifold subsets? Do you have a further usage in mind other than just subsets? Because all the examples you provide are still with subsets. |
comment:11
I can imagine this can be useful for frames whose domains cover the manifold? Perhaps this is a more suitable example for the non-subset case to show the difference? Some time ago I provided a helper function Another example in the field I could imagine is for orientations. An orientation is given by a family of charts/frames, too, but yet not implemented as such. |
comment:12
Replying to @mjungmath:
Yes, in #31732 I use I agree that charts/frames are likely to benefit from becoming finite families too. This will also need a separate subclass because they are indexed not by names but by coordinate tuples. |
comment:13
Replying to @mkoeppe:
Alright, that makes sense. Just a personal taste: I think its better to add some distinct examples to
Right. But don't you think it should rather be a new common parent class both inherit from? In any case, this is something definitely need, indeed! |
comment:14
Replying to @mjungmath:
Sure, let's do that when we introduce some more applications to families.
Sure, that makes sense.
Let's take this discussion to #31720 (Manifold: Change some methods to generators), which introduces generators for charts. Families could be introduced in the same ticket -- but I will need some guidance there what the keys should be. |
Changed branch from u/mkoeppe/manifoldsubset__manifold__change_some_methods_to_generators to |
This ticket proposes to change some methods that currently return lists to generators - like the method
open_supersets
added in #31677. This is in line with the changes in the Python standard library when we moved from Python 2 to 3.ManifoldSubset
:open_covers()
currently returns a list of listsManifoldSubsetFiniteFamily
instancestrivial
to simplify the common use case that only needs the nontrivial open coverssubsets()
currently returns afrozenset
ManifoldSubset
instancesThese API changes will probably make some updates to sage.manifolds worksheets that are maintained outside of the Sage tree necessary.
Follow-up for some methods of
Manifold
in #31720.Depends on #31680
CC: @mjungmath @egourgoulhon @tscrim
Component: manifolds
Author: Matthias Koeppe
Branch/Commit:
e026e7a
Reviewer: Eric Gourgoulhon
Issue created by migration from https://trac.sagemath.org/ticket/31718
The text was updated successfully, but these errors were encountered: