diff --git a/.github/workflows/test-pytest.yml b/.github/workflows/test-pytest.yml index 3ce245e0..4c7aeab7 100644 --- a/.github/workflows/test-pytest.yml +++ b/.github/workflows/test-pytest.yml @@ -26,4 +26,4 @@ jobs: python-version: ${{ matrix.python-version }} cache: "pip" - run: pip install ".[test]" - - run: pytest --doctest-modules + - run: pytest --doctest-modules --import-mode importlib diff --git a/docs/experimentalists/random/index.md b/docs/experimentalists/random/index.md index f9370e10..774283ba 100644 --- a/docs/experimentalists/random/index.md +++ b/docs/experimentalists/random/index.md @@ -25,7 +25,7 @@ This means that there are 9 possible combinations for these variables (3x3), fro ```python -from autora.experimentalist.random_ import random_pool +from autora.experimentalist.random import random_pool pool = random_pool([1, 2, 3], [4, 5, 6], num_samples=3) ``` diff --git a/docs/experimentalists/random/quickstart.md b/docs/experimentalists/random/quickstart.md index 9f872c75..491c1528 100644 --- a/docs/experimentalists/random/quickstart.md +++ b/docs/experimentalists/random/quickstart.md @@ -11,10 +11,10 @@ You can import and invoke the pool like this: ```python from autora.variable import VariableCollection, Variable -from autora.experimentalist.random_ import pool +from autora.experimentalist.random import pool pool( - VariableCollection(independent_variables=[Variable(name="x", allowed_values=range(10))]), + VariableCollection(independent_variables=[Variable(name="x", allowed_values=range(10))]), random_state=1 ) ``` @@ -22,7 +22,7 @@ pool( You can import the sampler like this: ```python -from autora.experimentalist.random_ import sample +from autora.experimentalist.random import sample sample([1, 1, 2, 2, 3, 3], num_samples=2) ``` diff --git a/src/autora/experimentalist/random_.py b/src/autora/experimentalist/random.py similarity index 100% rename from src/autora/experimentalist/random_.py rename to src/autora/experimentalist/random.py