Commit 404ad3e9 authored by Pierre Lairez's avatar Pierre Lairez
Browse files

Fix some issues with FailFast

parent 9a02098e
......@@ -33,7 +33,7 @@ from . import integer_relations
from . import config
from . import FailFast
logger = logging.getLogger('numperiods.family')
logger = logging.getLogger(__name__)
class Family:
......@@ -189,7 +189,7 @@ class Family:
k = 0
while True:
k = k+1
if k > config.max_dimension_of_a_cyclic_space:
if config.fail_fast and k > config.max_dimension_of_a_cyclic_space:
logger.info("Skipping this cyclic space, dimension %d too high." % k)
raise FailFast()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment