e372946bfc91419bc1dbbfadebfed6e6a402956d,nilearn/glm/tests/test_paradigm.py,,test_check_events,#,71
Before Change
match=""trial_type" column not found"):
ttype, onset, duration, modulation = check_events(events)
// Check that missing trial type yields a "dummy" array
assert_array_equal(ttype, np.repeat("dummy", len(events)))
// Check that missing modulation yields an array one ones
assert_array_equal(modulation, np.ones(len(events)))
// Modulation is provided
events["modulation"] = np.ones(len(events))
After Change
// Warnings checkins
// Missing trial type
missing_ttype = events.drop(columns=["trial_type"])
with pytest.warns(UserWarning,
match=""trial_type" column not found"):
ttype, onset, duration, modulation = check_events(missing_ttype)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: nilearn/nilearn
Commit Name: e372946bfc91419bc1dbbfadebfed6e6a402956d
Time: 2021-02-05
Author: nicolas.gensollen@gmail.com
File Name: nilearn/glm/tests/test_paradigm.py
Class Name:
Method Name: test_check_events
Project Name: EpistasisLab/tpot
Commit Name: 1d3771e0c0c42214e5328a881f67772d764b4e2f
Time: 2016-07-07
Author: supacoofoo@gmail.com
File Name: tests.py
Class Name:
Method Name: test_classifiers
Project Name: catalyst-cooperative/pudl
Commit Name: f3ed367fe1e586c73ac5fe39fef7b916d5987f2b
Time: 2020-02-12
Author: zane.selvans@catalyst.coop
File Name: src/pudl/output/eia860.py
Class Name:
Method Name: generators_eia860