Skip to content

Commit

Permalink
feat(frontend-python): enable multi precision and multi parameters by…
Browse files Browse the repository at this point in the history
… default
  • Loading branch information
umut-sahin authored and BourgerieQuentin committed Jun 28, 2023
1 parent 6fdcb78 commit 9a8fc0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions frontends/concrete-python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ pytest:
export LD_PRELOAD=$(RUNTIME_LIBRARY)
export PYTHONPATH=$(BINDINGS_DIRECTORY)

# test single precision
# test single precision, mono params
pytest tests -svv -n auto \
--precision=single \
--strategy=mono \
--key-cache "${KEY_CACHE_DIRECTORY}" \
-m "${PYTEST_MARKERS}"

# test multi precision
# test multi precision, multi params
pytest tests -svv -n auto \
--precision=multi \
--strategy=multi \
--cov=concrete \
--cov-fail-under=100 \
--cov-report=term-missing:skip-covered \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def __init__(
p_error: Optional[float] = None,
global_p_error: Optional[float] = None,
auto_adjust_rounders: bool = False,
single_precision: bool = True,
single_precision: bool = False,
parameter_selection_strategy: Union[
ParameterSelectionStrategy, str
] = ParameterSelectionStrategy.MONO,
] = ParameterSelectionStrategy.MULTI,
show_progress: bool = False,
progress_title: str = "",
progress_tag: Union[bool, int] = False,
Expand Down

0 comments on commit 9a8fc0d

Please sign in to comment.