c19000b012bba5fa7ae54fadc953f5b679dead4f,featurex/tests/test_extractors.py,,test_optical_flow_extractor,#,145
Before Change
stim = VideoStim(join(video_dir, "small.mp4"))
ext = DenseOpticalFlowExtractor()
timeline = stim.extract([ext])
df = timeline.to_df()
assert df.shape == (168, 4)
target = df.query("name=="total_flow" & onset==3.0")["value"].values
assert np.isclose(target, 86248.05)
After Change
pytest.importorskip("cv2")
video_dir = join(get_test_data_path(), "video")
stim = VideoStim(join(video_dir, "small.mp4"))
result = DenseOpticalFlowExtractor().extract(stim).to_df()
target = result.query("onset==3.0")["total_flow"]
assert np.isclose(target, 86248.05)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: tyarkoni/pliers
Commit Name: c19000b012bba5fa7ae54fadc953f5b679dead4f
Time: 2016-10-20
Author: quinten.mcnamara@gmail.com
File Name: featurex/tests/test_extractors.py
Class Name:
Method Name: test_optical_flow_extractor
Project Name: tyarkoni/pliers
Commit Name: e98d99e745b61af768bd30fd9bad7c892eefbe17
Time: 2016-10-20
Author: quinten.mcnamara@gmail.com
File Name: featurex/tests/test_extractors.py
Class Name:
Method Name: test_clarifaiAPI_extractor
Project Name: J535D165/recordlinkage
Commit Name: 4a24e4e36ee175aef54b92eb03e08a2be7811a96
Time: 2018-03-10
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/datasets/febrl.py
Class Name:
Method Name: _febrl_links