Skip to content

Commit

Permalink
Merge pull request #544 from carlthome/patch-1
Browse files Browse the repository at this point in the history
Use generator expression instead of making a list
  • Loading branch information
bmcfee committed Apr 6, 2017
2 parents 3e23d5b + be5eeb9 commit 707ffd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librosa/core/constantq.py
Expand Up @@ -556,7 +556,7 @@ def __trim_stack(cqt_resp, n_bins):
'''Helper function to trim and stack a collection of CQT responses'''

# cleanup any framing errors at the boundaries
max_col = min([x.shape[1] for x in cqt_resp])
max_col = min(x.shape[1] for x in cqt_resp)

cqt_resp = np.vstack([x[:, :max_col] for x in cqt_resp][::-1])

Expand Down

0 comments on commit 707ffd1

Please sign in to comment.