-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from msamsami/new-distributions-param-type
feat: add support for specifying distributions as a list of tuples
- Loading branch information
Showing
9 changed files
with
416 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import numpy as np | ||
import pytest | ||
from numpy.typing import NDArray | ||
|
||
|
||
@pytest.fixture | ||
def global_random_seed(): | ||
def global_random_seed() -> int: | ||
return np.random.randint(0, 1000) | ||
|
||
|
||
@pytest.fixture | ||
def random_uniform(): | ||
def random_uniform() -> NDArray[np.float64]: | ||
return np.random.uniform(0, 100, size=10000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.