Skip to content

Commit

Permalink
Fixing a bug about the new decoration flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
unhyperbolic committed Nov 9, 2024
1 parent c8b2ac5 commit fd3f38b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions python/decorated_isosig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''

Expand All @@ -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))

Expand Down

0 comments on commit fd3f38b

Please sign in to comment.