Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Jul 4, 2017
1 parent 7f4e92f commit a28bb4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/rings/polynomial/flatten.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,14 @@ def __init__(self, domain, D):
while is_PolynomialRing(R) or is_MPolynomialRing(R):
old = R.gens()
new = [t for t in old if t not in D]
force_multivariate = (len(old) == 1) and is_MPolynomialRing(R)
new_vars.insert(0, (new, force_multivariate))
force_multivariate = ((len(old) == 1) and is_MPolynomialRing(R))
new_vars.append((new, force_multivariate))
R = R.base_ring()

# Construct unflattening map psi (only defined on the variables
# of "flat" which are not involved in D)
psi = dict()
for new, force_multivariate in new_vars:
for new, force_multivariate in reversed(new_vars):
if not new:
continue
# Pass in the names of the variables
Expand Down

0 comments on commit a28bb4e

Please sign in to comment.