Skip to content

Commit

Permalink
src/sage/geometry/cone_catalog.py: drop parens from tuple assignments
Browse files Browse the repository at this point in the history
For example,

  (x,y) = foo

becomes

  x,y = foo

Thanks to Matthias Koeppe for the suggestion.
  • Loading branch information
orlitzky committed Apr 16, 2024
1 parent 535ec5d commit 85e93c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sage/geometry/cone_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def downward_monotonic(ambient_dim=None, lattice=None):
from sage.matrix.constructor import matrix
from sage.rings.integer_ring import ZZ

(ambient_dim, lattice) = _preprocess_args(ambient_dim, lattice)
ambient_dim, lattice = _preprocess_args(ambient_dim, lattice)

# The generators for this cone are mentioned in Niezgoda's
# Example 2.2 if you don't want to compute them yourself.
Expand Down Expand Up @@ -386,7 +386,7 @@ def nonnegative_orthant(ambient_dim=None, lattice=None):
from sage.matrix.constructor import matrix
from sage.rings.integer_ring import ZZ

(ambient_dim, lattice) = _preprocess_args(ambient_dim, lattice)
ambient_dim, lattice = _preprocess_args(ambient_dim, lattice)

I = matrix.identity(ZZ, ambient_dim)
return Cone(I.rows(), lattice)
Expand Down Expand Up @@ -612,7 +612,7 @@ def rearrangement(p, ambient_dim=None, lattice=None):
from sage.matrix.constructor import matrix
from sage.rings.integer_ring import ZZ

(ambient_dim, lattice) = _preprocess_args(ambient_dim, lattice)
ambient_dim, lattice = _preprocess_args(ambient_dim, lattice)

if p < 1 or p > ambient_dim or p not in ZZ:
raise ValueError("order p=%s should be an integer between 1 "
Expand Down Expand Up @@ -753,7 +753,7 @@ def schur(ambient_dim=None, lattice=None):
from sage.matrix.constructor import matrix
from sage.rings.integer_ring import ZZ

(ambient_dim, lattice) = _preprocess_args(ambient_dim, lattice)
ambient_dim, lattice = _preprocess_args(ambient_dim, lattice)

def _f(i,j):
if i == j:
Expand Down Expand Up @@ -841,6 +841,6 @@ def trivial(ambient_dim=None, lattice=None):
"""
from sage.geometry.cone import Cone

(ambient_dim, lattice) = _preprocess_args(ambient_dim, lattice)
ambient_dim, lattice = _preprocess_args(ambient_dim, lattice)

return Cone([], lattice)

0 comments on commit 85e93c7

Please sign in to comment.