sage.{dynamics,schemes}: Modularization fixes, docstring cosmetics, update # needs#36271
Conversation
…tics, add # needs
SageMath version 10.2.beta4, Release Date: 2023-09-24
| sage: B = Berkovich_Cp_Projective(P, ideal) | ||
| sage: f = DynamicalSystem_Berkovich([x^2 + y^2, 2*x*y], B) | ||
| sage: f.scale_by(2); f | ||
| sage: A.<a> = NumberField(z^3 + 20) # needs sage.rings.number_field |
There was a problem hiding this comment.
Thanks. I've redone this file in e38afeb with a file tag for "sage.rings.padics" and block tags for "sage.rings.number_field"
| [(1 : 1), (4/3 : 1), (1 : 0), (0 : 1)] | ||
|
|
||
| :: | ||
|
|
||
| sage: K.<v> = QuadraticField(2) | ||
| sage: P.<x,y> = ProjectiveSpace(K,1) | ||
| sage: K.<v> = QuadraticField(2) # needs sage.rings.number_field |
There was a problem hiding this comment.
block scope (and many other places in this file)
| They are defined as: | ||
| `G^*_k = \left(L^*_j\right)^2Q^*_{ii}-L^*_iL^*_jQ^*_{ij}+\left(L^*_i\right)^2Q^*_{jj}`\ | ||
| `G^*_k = \left(L^*_j\right)^2Q^*_{ii}-L^*_iL^*_jQ^*_{ij}+\left(L^*_i\right)^2Q^*_{jj}` | ||
| where {i, j, k} is some permutation of (0, 1, 2) and * is either |
| PP = self.ambient_space() | ||
| if PP.base_ring() in _NumberFields or is_NumberFieldOrder(PP.base_ring()): | ||
| if PP.base_ring() != ZZ and PP.base_ring() != QQ: | ||
| if PP.base_ring() != ZZ and PP.base_ring() != QQ: |
There was a problem hiding this comment.
I'm not sure of that this change is correct. You changed the order of the tests but not of the error messages...
| def lift(x): | ||
| r""" | ||
| Try to call x.lift(), presumably from the `p`-adics to ZZ. | ||
| Try to call ``x.lift()``, presumably from the `p`-adics to ``ZZ``. |
There was a problem hiding this comment.
In other places you used \ZZ, but both are ok I think.
…ges, docstring cosmetics
|
The CI reports the following error However, I can compile without error on my laptop. |
SageMath version 10.2.beta8, Release Date: 2023-10-21
|
Documentation preview for this PR (built with commit 7033d7d; changes) is ready! 🎉 |
dcoudert
left a comment
There was a problem hiding this comment.
all tests pass on my macOS laptop. LGTM.
|
Thank you! |
sagemathgh-36271: `sage.{dynamics,schemes}`: Modularization fixes, docstring cosmetics, update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36271 Reported by: Matthias Köppe Reviewer(s): David Coudert, Matthias Köppe
sagemathgh-36271: `sage.{dynamics,schemes}`: Modularization fixes, docstring cosmetics, update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36271 Reported by: Matthias Köppe Reviewer(s): David Coudert, Matthias Köppe
sagemathgh-36271: `sage.{dynamics,schemes}`: Modularization fixes, docstring cosmetics, update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36271 Reported by: Matthias Köppe Reviewer(s): David Coudert, Matthias Köppe
sagemathgh-36271: `sage.{dynamics,schemes}`: Modularization fixes, docstring cosmetics, update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36271 Reported by: Matthias Köppe Reviewer(s): David Coudert, Matthias Köppe
sagemathgh-36271: `sage.{dynamics,schemes}`: Modularization fixes, docstring cosmetics, update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36271 Reported by: Matthias Köppe Reviewer(s): David Coudert, Matthias Köppe
|
Pyright check fails because of this PR. |
|
Do we have any indication of what's going on / the localisation of the problem ? |
|
I see, it's this change in that makes Pyright unhappy with What should be the correct default value for |
📝 Checklist
⌛ Dependencies