Fix import: move permutations to top-level
This commit is contained in:
parent
fa19b7877f
commit
f04b1baa49
|
|
@ -13,7 +13,7 @@ Mathematical foundations:
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from fractions import Fraction
|
from fractions import Fraction
|
||||||
from itertools import combinations, permutations
|
from itertools import combinations, permutations, permutations
|
||||||
from math import prod, log
|
from math import prod, log
|
||||||
from operator import add
|
from operator import add
|
||||||
from random import choice, choices, seed
|
from random import choice, choices, seed
|
||||||
|
|
@ -624,8 +624,6 @@ class HarmonicSpace:
|
||||||
valid_pairings.append(pairings)
|
valid_pairings.append(pairings)
|
||||||
|
|
||||||
# Generate all permutations and filter valid ones
|
# Generate all permutations and filter valid ones
|
||||||
from itertools import permutations
|
|
||||||
|
|
||||||
all_maps = []
|
all_maps = []
|
||||||
num_changing = len(c2_changing)
|
num_changing = len(c2_changing)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue