Skip to content

Commit 5ca9986

Browse files
committed
allow faster secondary cone computations
via_circuits is fast, but not a default argument since it's bad for checking regularity. Allow passing it if regularity is known
1 parent 6ee979d commit 5ca9986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/regfans/fan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def is_valid(self, verbosity: int = 0) -> bool:
530530

531531
return True
532532

533-
def respects_ptconfig(self) -> bool:
533+
def respects_ptconfig(self, via_circuits=False) -> bool:
534534
"""
535535
**Description:**
536536
Return whether or not the fan also defines a (star) subdivision of the
@@ -548,7 +548,7 @@ def respects_ptconfig(self) -> bool:
548548
raise NotImplementedError("Not implemented for irregular fans")
549549

550550
# just check if central subdivision is a refinement
551-
H = self.secondary_cone_hyperplanes()
551+
H = self.secondary_cone_hyperplanes(via_circuits=via_circuits)
552552
return all((H @ np.ones(self.vc.size)) >= 0)
553553

554554
def is_triangulation(self) -> bool:

0 commit comments

Comments
 (0)