From fd3f38b8bcf4ec263165bea18ee1dc4a869e1fbb Mon Sep 17 00:00:00 2001 From: Matthias Goerner <1239022+unhyperbolic@users.noreply.github.com> Date: Sat, 9 Nov 2024 12:15:13 -0800 Subject: [PATCH] Fixing a bug about the new decoration flags. --- python/decorated_isosig.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/python/decorated_isosig.py b/python/decorated_isosig.py index 276b552f..2e364705 100644 --- a/python/decorated_isosig.py +++ b/python/decorated_isosig.py @@ -299,10 +299,17 @@ def candidate_decoration_info( matrices = [ matrices[i] for i in perm ] slopes = [ slopes[i] for i in perm ] - if ignore_curve_orientations: - for matrix, slope in zip(matrices, slopes): - apply_peripheral_curve_flips( - matrix, slope, manifold_orientable, isomorphism_orientation) + if ignore_curves: + slopes = [ matrix * slope + for matrix, slope in zip(matrices, slopes) ] + if manifold_orientable: + for slope in slopes: + slope[0] *= isomorphism_orientation + else: + if ignore_curve_orientations: + for matrix, slope in zip(matrices, slopes): + apply_peripheral_curve_flips( + matrix, slope, manifold_orientable, isomorphism_orientation) encoded = '' @@ -311,10 +318,7 @@ def candidate_decoration_info( # Encode permutation encoded += encode_integer_list(perm) - if ignore_curves: - slopes = [ matrix * slope - for matrix, slope in zip(matrices, slopes) ] - else: + if not ignore_curves: # Encode the matrices encoded += encode_integer_list(pack_matrices(matrices))