Skip to content

Conversation

@hagenw
Copy link
Member

@hagenw hagenw commented Oct 10, 2023

Closes #391

This fixes audformat.utils.hash() for pandas>=2.1.0 by applying the workaround proposed in pandas-dev/pandas#55452 (comment).
The original code in pandas was casting the hashes to int64 before summing, which was a long time bug that was fixed in pandas-dev/pandas#53418. In order to provide backward compatibility we now always cast the hashes to int64.

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Merging #396 (7c6033b) into main (7186305) will not change coverage.
The diff coverage is 100.0%.

Files Coverage Δ
audformat/core/utils.py 100.0% <100.0%> (ø)

@hagenw hagenw requested a review from frankenjoe October 10, 2023 07:56
@frankenjoe frankenjoe merged commit 0a550d7 into main Oct 11, 2023
@frankenjoe frankenjoe deleted the fix-hashing-new-pandas branch October 11, 2023 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audformat.utils.hash() changed its output

3 participants