Skip to content

Commit

Permalink
Provide code example
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jun 25, 2024
1 parent e341105 commit f8a9960
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion audformat/core/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,13 @@ def save(
based on the content of the table,
is stored under the key ``b"hash"``
in the metadata of the schema of the parquet file.
This provides a deterministic hash,
This provides a deterministic hash for the file,
as md5 sums of parquet files
can be different
for the same content.
The hash can be accessed with ``pyarrow`` by::
pyarrow.parquet.read_schema(file).metadata[b"hash"].decode()
Args:
path: file path without extension
Expand Down

0 comments on commit f8a9960

Please sign in to comment.