Closed hagenw closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.0%. Comparing base (
a8cd511
) to head (7514c60
).
include_order_and_names
is verbose, but also slightly long as an argument name. strict
might be a better choice?
I added a reference to #419 in the description and renamed the argument to strict
, thanks for the suggestions.
Closes #447
Adds the
strict
argument toaudformat.utils.hash()
. IfTrue
it will take the order of rows and the names of index levels and columns into account. The returned hash is then identical to the one attached to parquet table files.A hashing variant that takes into account the order of rows, name of columns and levels, and the data types was needed for calculating a hash for parquet tables as introduced in https://github.com/audeering/audformat/pull/419. Before, this was handled by a private method, independent of
audformat.utils.hash()
.