0c6388a26950beaeec0925e67b9bfb55ccfa2fde,nilearn/glm/tests/test_paradigm.py,,modulated_block_paradigm,#,24
Before Change
def modulated_block_paradigm():
conditions = ["c0", "c0", "c0", "c1", "c1", "c1", "c2", "c2", "c2"]
onsets = [30, 70, 100, 10, 30, 90, 30, 40, 60]
durations = 5 + 5 * np.random.rand(len(onsets))
values = np.random.rand(len(onsets))
events = pd.DataFrame({"name": conditions,
"onset": onsets,
"duration": durations,
After Change
def modulated_block_paradigm():
rng = np.random.RandomState(42)
conditions = ["c0", "c0", "c0", "c1", "c1", "c1", "c2", "c2", "c2"]
onsets = [30, 70, 100, 10, 30, 90, 30, 40, 60]
durations = 5 + 5 * rng.uniform(size=len(onsets))
values = rng.uniform(size=len(onsets))
events = pd.DataFrame({"name": conditions,
"onset": onsets,
"duration": durations,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_paradigm.py
Class Name:
Method Name: modulated_block_paradigm
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_dmtx.py
Class Name:
Method Name: modulated_block_paradigm
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_dmtx.py
Class Name:
Method Name: modulated_event_paradigm