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
improve coding style and documentation style in affine schemes #19889
Comments
Branch: u/rlmiller/ticket/19889 |
Author: Rebecca Miller |
New commits:
|
Commit: |
Reviewer: Ben Hutz |
comment:6
Most of these are minor. But there are couple places the code can be improved. All changes referenced by line number. affine_space.py
affine_point.py
affine_morphism.py
|
comment:7
You shouldn't do this: r"""
-Set of homomorphisms between two affine schemes
+Set of homomorphisms between two affine schemes. The title of a module should not end with a period. |
comment:8
Some changes go from good to bad I think. In these cases, I prefer the original code: -from sage.arith.all import lcm, gcd
+from sage.arith.all import lcm, gcd and - if not isinstance(polys, (list, tuple)):
+ if not isinstance(polys,(list, tuple)): and - Construct a point.
+ Constructs a point. |
comment:9
I wasn't sure of the convention for the imports: have them all lined up or just single space after import? Yes, those other changes should be un-done. I went through the files looking at what was potentially missed and didn't go through the specific changes yet. |
comment:10
The column style
is annoying for several reasons:
|
comment:11
Those seem like good reasons for single space to me. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
There is a minor merge conflict with the latest beta. The docs do not build, so I wasn't able to look at them for formatting issues. However, I went through the changes are there are some specifics to fix: undo
define - this occurs in two places
map's
extra space
new paragraph for 2nd sentence
of the map instead of extension field
no period
undo
'with this point in' instead of 'self if'
2nd sentence new paragraph
missing space
another special case to remove + associated code
The 2nd sentence should be the 1st. The 1st sentence needs more info ('Since every...finite field, this pair always exists.')
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
I'm still not getting the docs to build even after a make doc-clean. I get
It seems to be complaining about the
making it
seems to fix the issue. Another small change I missed last time.
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:20
I assume you meant to set this to needs review. The docs build now and I was able to look at them. It looks like some of your line wrapping for INPUT/OUTPUT is not formatting correctly. It is because of the number of spaces indenting the 2nd line. For example look at the input/output of dynatomic_polynomial in affine_morphism. The output formats correctly, but the input does not. There are a number of such spacing issues in the files. |
Changed branch from u/rlmiller/ticket/19889 to |
Changed commit from |
comment:25
What do you prefer: "Rebecca Lauren Miller" or "Rebecca Miller"? |
Changed author from Rebecca Miller to Rebecca Lauren Miller |
There are number of coding style issues and documentation issues in the affine scheme functionality such as
== False
or== True
references to
self
in docsno single line description
formatting of errors
etc.
Component: algebraic geometry
Author: Rebecca Lauren Miller
Branch:
0ab95a6
Reviewer: Ben Hutz
Issue created by migration from https://trac.sagemath.org/ticket/19889
The text was updated successfully, but these errors were encountered: