We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f6a4e9 commit 457bf40Copy full SHA for 457bf40
heudiconv/tests/test_bids.py
@@ -7,7 +7,8 @@
7
from pathlib import Path
8
from random import (random,
9
shuffle,
10
- choice
+ choice,
11
+ seed
12
)
13
from datetime import (datetime,
14
timedelta,
@@ -18,7 +19,6 @@
18
19
20
import nibabel
21
import string
-import numpy as np
22
from numpy import testing as np_testing
23
24
from heudiconv.utils import (
@@ -51,9 +51,9 @@
51
import pytest
52
53
def gen_rand_label(label_size, label_seed):
54
- np.random.seed(label_seed)
+ seed(label_seed)
55
rand_char = ''.join(choice(string.ascii_letters) for _ in range(label_size-1))
56
57
rand_num = choice(string.digits)
58
return rand_char + rand_num
59
0 commit comments