Skip to content

Commit 80ada8e

Browse files
author
Release Manager
committed
gh-35409: fix pep8 E303 in folders starting with m <!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes #12345", use "Add a new method to multiply two integers" --> ### 📚 Description fix all pep8 E303 warning in the folders whose name starts with the letter m purely done with autopep8: ``` $ autopep8 -i --select=E303 src/sage/m*/*.py $ autopep8 -i --select=E303 src/sage/m*/*/*.py ``` <!-- 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 #12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] 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 accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #35409 Reported by: Frédéric Chapoton Reviewer(s): David Coudert
2 parents 5853e99 + 1654726 commit 80ada8e

31 files changed

+0
-63
lines changed

src/sage/manifolds/chart.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,6 @@ def _tighten_bounds(self):
23172317
self._restrictions = new_restrictions
23182318
self._fast_valid_coordinates = None
23192319

2320-
23212320
def restrict(self, subset, restrictions=None):
23222321
r"""
23232322
Return the restriction of the chart to some open subset of its domain.

src/sage/manifolds/differentiable/automorphismfield_group.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def __init__(self, vector_field_module):
175175
Parent.__init__(self, category=Groups())
176176
self._vmodule = vector_field_module
177177

178-
179178
#### Parent methods ####
180179

181180
def _element_constructor_(self, comp=[], frame=None, name=None,
@@ -266,7 +265,6 @@ def _an_element_(self):
266265

267266
#### End of parent methods ####
268267

269-
270268
#### Monoid methods ####
271269

272270
@cached_method

src/sage/manifolds/differentiable/chart.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,6 @@ def symbolic_velocities(self, left='D', right=None):
679679
return list(var(list_strings_velocities))
680680

681681

682-
683682
#*****************************************************************************
684683

685684
class RealDiffChart(DiffChart, RealChart):
@@ -1001,7 +1000,6 @@ def __init__(self, domain, coordinates, calc_method=None,
10011000
self._frame = CoordFrame(self)
10021001
self._coframe = self._frame._coframe
10031002

1004-
10051003
def restrict(self, subset, restrictions=None):
10061004
r"""
10071005
Return the restriction of the chart to some subset.

src/sage/manifolds/differentiable/degenerate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ def open_subset(self, name, latex_name=None, coord_def={}):
368368
return resu
369369

370370

371-
372371
#*******************************************************************************************
373372

374373
from sage.manifolds.differentiable.tensorfield_paral import TensorFieldParal

src/sage/manifolds/differentiable/degenerate_submanifold.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,6 @@ def principal_directions(self, screen=None):
13231323
self._principal_directions[screen._name] = res
13241324
return res
13251325

1326-
13271326
def mean_curvature(self, screen=None):
13281327
r"""
13291328

src/sage/manifolds/differentiable/diff_form.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,6 @@ def wedge(self, other):
15561556
other_r = other.restrict(dom_resu)
15571557
return FreeModuleAltForm.wedge(self_r, other_r)
15581558

1559-
15601559
def interior_product(self, qvect):
15611560
r"""
15621561
Interior product with a multivector field.

src/sage/manifolds/differentiable/diff_map.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,6 @@ def paral_comp(tcomp, chart1, chart2, coord2_1, jacob,
11441144
resu._components[frame] = comp
11451145
return resu
11461146

1147-
11481147
def pushforward(self, tensor):
11491148
r"""
11501149
Pushforward operator associated with ``self``.

src/sage/manifolds/differentiable/integrated_curve.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ def fast_CoF(pos, vel, M=M):
579579
for f in transf]
580580
self._fast_changes_of_chart[CoC] = fast_transf
581581

582-
583582
self._velocities = list(velocities) # converts to list
584583
# since might not already be a list (which is later required)
585584
self._curve_parameter = curve_parameter
@@ -1376,13 +1375,11 @@ def jacobian(t,y):
13761375
# 'tangent_vector_eval_at', and in 'plot' when plotting the
13771376
# tangent vectors.)
13781377

1379-
13801378
if isinstance(sol, list):
13811379
coords_sol = [point[0:dim + 1] for point in sol]
13821380
else:
13831381
coords_sol = sol[:, 0:dim + 1].tolist() # far faster in numpy
13841382

1385-
13861383
if verbose:
13871384
print("Numerical integration completed.\n\n" +
13881385
"Checking all points are in the chart domain...")
@@ -1779,7 +1776,6 @@ def solve_across_charts(self, charts=None, step=None, solution_key=None,
17791776
new_vel = self._fast_changes_of_frame[(new_chart.frame().restrict(inter),
17801777
chart.frame().restrict(inter))](last_pts, last_vel)
17811778

1782-
17831779
ics = new_pts + new_vel
17841780
chart = new_chart
17851781

@@ -2434,7 +2430,6 @@ def plot_integrated(self, chart=None, ambient_coords=None,
24342430
thickness = kwds.pop('thickness')
24352431
aspect_ratio = kwds.pop('aspect_ratio')
24362432

2437-
24382433
#
24392434
# The mapping, if present, and the chart with respect to which the curve
24402435
# is plotted
@@ -3425,7 +3420,6 @@ def __init__(self, parent, affine_connection, curve_parameter,
34253420

34263421
velocities = chart.symbolic_velocities()
34273422

3428-
34293423
dim = parent.codomain().dim()
34303424
i0 = parent.codomain().start_index()
34313425

@@ -3470,7 +3464,6 @@ def __init__(self, parent, affine_connection, curve_parameter,
34703464
equations_rhs_chart += [rhs.simplify_full()]
34713465
equations_rhs[chart] = equations_rhs_chart
34723466

3473-
34743467
IntegratedCurve.__init__(self, parent, equations_rhs,
34753468
velocities, curve_parameter,
34763469
initial_tangent_vector, chart=chart,
@@ -3479,7 +3472,6 @@ def __init__(self, parent, affine_connection, curve_parameter,
34793472

34803473
self._affine_connection = affine_connection
34813474

3482-
34833475
def _repr_(self):
34843476
r"""
34853477
Return a string representation of ``self``.
@@ -3825,7 +3817,6 @@ class IntegratedGeodesic(IntegratedAutoparallelCurve):
38253817
def __init__(self, parent, metric, curve_parameter,
38263818
initial_tangent_vector, chart=None, name=None,
38273819
latex_name=None, verbose=False, across_charts=False):
3828-
38293820
r"""
38303821
Construct a geodesic curve with respect to the given metric with the
38313822
given initial tangent vector.

src/sage/manifolds/differentiable/levi_civita_connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ def _new_coef(self, frame):
387387
start_index=self._domain._sindex,
388388
output_formatter=DiffScalarField.coord_function)
389389

390-
391390
def coef(self, frame=None):
392391
r"""
393392
Return the connection coefficients relative to the given frame.

src/sage/manifolds/differentiable/manifold.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2977,7 +2977,6 @@ def change_of_frame(self, frame1, frame2):
29772977
" has not been defined on the {}".format(self))
29782978
return self._frame_changes[(frame1, frame2)]
29792979

2980-
29812980
def set_change_of_frame(self, frame1, frame2, change_of_frame,
29822981
compute_inverse=True):
29832982
r"""

0 commit comments

Comments
 (0)