Skip to content

Commit

Permalink
refactor: Disable FPE mask printing if FPEMON is disabled by envvar (#…
Browse files Browse the repository at this point in the history
…2670)

The summary of the FPE masks is quite verbose, and if the environment variable `ACTS_SEQUENCER_DISABLE_FPEMON` is set, one is probably not interested in this output.
  • Loading branch information
benjaminhuth authored Nov 16, 2023
1 parent 8c2b8c0 commit fbfd389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/Python/python/acts/examples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def _getAutoFpeMasks(cls) -> List[FpeMask]:

@classmethod
def _printFpeSummary(cls, masks: List[FpeMask]):
if len(masks) == 0:
if len(masks) == 0 or "ACTS_SEQUENCER_DISABLE_FPEMON" in os.environ:
return

# Try to make a nice summary with rich, or fallback to a plain text one
Expand Down

0 comments on commit fbfd389

Please sign in to comment.