Skip to content

Commit 81e477f

Browse files
committed
clean warning message
previously, if ftmp was a non-triangulation subdivision (i.e., a nonsimplicial cell) then the error message would fail to be built
1 parent 3861e95 commit 81e477f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/regfans/fan.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,12 +1285,14 @@ def flip_linear(self,
12851285
first_hit_ind, first_hit_dist = util.first_hit(h_curr, h_target, sc_curr)
12861286
if first_hit_ind is None:
12871287
ftmp = self.vc.triangulate(heights=h_target)
1288-
print(ftmp, T_curr)
1289-
print(ftmp == T_curr)
1288+
print(f"vc = {vc.vectors().tolist()}")
1289+
print(f"T_curr = {T_curr.cones()}")
1290+
print(f"ftmp = {ftmp.cones()}")
1291+
print('ftmp == T_curr ',ftmp == T_curr)
12901292
print(np.min(sc_curr@h_curr))
12911293
print(np.min(sc_curr@h_target))
1292-
print(np.min(ftmp.secondary_cone_hyperplanes(via_circuits=True, verbosity=-1)@h_curr))
1293-
print(np.min(ftmp.secondary_cone_hyperplanes(via_circuits=True, verbosity=-1)@h_target))
1294+
#print(np.min(ftmp.secondary_cone_hyperplanes(via_circuits=True, verbosity=-1)@h_curr))
1295+
#print(np.min(ftmp.secondary_cone_hyperplanes(via_circuits=True, verbosity=-1)@h_target))
12941296
print("????")
12951297

12961298
msg = "first_hit_ind=None... should've been caught earlier... "

0 commit comments

Comments
 (0)