DCASE-REPO / dcase_util

A collection of utilities for Detection and Classification of Acoustic Scenes and Events
https://dcase-repo.github.io/dcase_util/
MIT License
127 stars 33 forks source link

Fix assigment in aggregator #8

Closed mic2zar closed 6 years ago

mic2zar commented 6 years ago

What does this implement/fix? Explain your changes.

data = dcase_util.utils.Example.feature_container()
print(data.shape)

data_aggregator = dcase_util.data.Aggregator(
    recipe=['mean', 'std'],
    win_length_frames=10,
    hop_length_frames=1,
)

data_aggregator.aggregate(data)
print(data.shape)

produces:

(40, 501)
(40, 501)

Fix assignment to:

data = data_aggregator.aggregate(data)

to obtain desired effect

(40, 501)
(80, 501)
coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.03%) to 50.58% when pulling ef4fef73d25a5c348d7aaea28b8ff43215419ebe on mic2zar:doc-correction into ff46fcca7e56c2ec5f09a2ac12c01ad767d8287d on DCASE-REPO:master.