ext = STFTExtractor(frame_size=1., spectrogram=False,
bins=[(100, 300), (300, 3000), (3000, 20000)])
// This probably doesn"t work if doing stim.extract() due to multi-level
timeline = ext.extract(stim).to_df(stim_name=True)
assert "100_300" in timeline.columns
long_timeline = convert_to_long_format(timeline)
assert long_timeline.shape == (timeline.shape[0] * 3, 5)
assert "feature" in long_timeline.columns
After Change
assert "feature" in long_timeline.columns
assert "value" in long_timeline.columns
assert "100_300" not in long_timeline.columns
timeline = ExtractorResult.merge_features([timeline])
long_timeline = to_long_format(timeline)
assert "feature" in long_timeline.columns
assert "extractor" in long_timeline.columns
assert "100_300" not in long_timeline.columns