-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EBR-43: resolve sonar warnings #70
Conversation
@@ -104,7 +105,8 @@ | |||
|
|||
def test_dimensions_selection_update(tsw_tvb_data): | |||
# simulate unchecking of some checkboxes | |||
false_cb_idx = list(np.random.choice(76, size=3, replace=False)) | |||
rng = np.random.default_rng() |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low test
@@ -17,7 +18,8 @@ | |||
@pytest.fixture | |||
def wrapper_np(): | |||
""" Returns an initialized Numpy wrapper with 3 dimensions """ | |||
numpy_array = np.random.rand(30000, 4, 50) | |||
rng = np.random.default_rng() |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low test
tvbwidgets/tests/ts/ts_generator.py
Outdated
@@ -97,8 +97,9 @@ | |||
|
|||
def _generate_connectivity(no_of_regions): | |||
labels = np.array(['sig ' + str(i) for i in range(no_of_regions)]) | |||
conn = connectivity.Connectivity(centres=np.random.rand(no_of_regions, 3), | |||
rng = np.random.default_rng() |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low test
|
No description provided.