audformat 1.3.0__tar.gz → 1.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {audformat-1.3.0 → audformat-1.3.1}/.github/workflows/test.yml +3 -0
- {audformat-1.3.0 → audformat-1.3.1}/CHANGELOG.rst +8 -0
- {audformat-1.3.0 → audformat-1.3.1}/PKG-INFO +2 -2
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/utils.py +6 -24
- {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/PKG-INFO +2 -2
- {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/requires.txt +1 -1
- {audformat-1.3.0 → audformat-1.3.1}/pyproject.toml +1 -1
- {audformat-1.3.0 → audformat-1.3.1}/.github/workflows/doc.yml +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/.github/workflows/linter.yml +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/.github/workflows/publish.yml +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/.gitignore +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/.pre-commit-config.yaml +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/CONTRIBUTING.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/LICENSE +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/README.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/__init__.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/__init__.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/attachment.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/column.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/common.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/conftest.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/database.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/define.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/errors.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/index.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/media.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/rater.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/scheme.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/split.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/table.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/testing.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/core/typing.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/define/__init__.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/errors/__init__.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/testing/__init__.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat/utils/__init__.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/SOURCES.txt +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/dependency_links.txt +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/top_level.txt +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/benchmarks/benchmark_union.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/accessing-data.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.define.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.errors.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.testing.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.utils.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.define.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.errors.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.testing.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.utils.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/changelog.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/combine-tables.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/conf.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/contributing.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/create-database.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/data-conventions.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/data-example.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/data-format.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/data-header.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/data-introduction.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/data-misc-tables.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/data-tables.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/emodb-example.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/genindex.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/index.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/install.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/map-scheme.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/pics/audformat-database.dot +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/pics/audformat-misc-table.dot +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/pics/audformat-table.dot +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/requirements.txt +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/docs/update-database.rst +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/requirements.txt +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/setup.cfg +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/conftest.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/requirements.txt +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_attachment.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_column.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_common.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_database.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_database_get.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_eq.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_errors.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_index.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_misc_table.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_scheme.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_table.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_utils.py +0 -0
- {audformat-1.3.0 → audformat-1.3.1}/tests/test_utils_concat.py +0 -0
|
@@ -7,6 +7,14 @@ The format is based on `Keep a Changelog`_,
|
|
|
7
7
|
and this project adheres to `Semantic Versioning`_.
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
Version 1.3.1 (2024-09-16)
|
|
11
|
+
--------------------------
|
|
12
|
+
|
|
13
|
+
* Changed: replace unmaintained ``iso-639`` dependency
|
|
14
|
+
with ``iso639-lang``
|
|
15
|
+
* Fixed: ensure ``poetry`` can manage ``audformat``
|
|
16
|
+
|
|
17
|
+
|
|
10
18
|
Version 1.3.0 (2024-07-18)
|
|
11
19
|
--------------------------
|
|
12
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: audformat
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: Python implementation of audformat
|
|
5
5
|
Author: Johannes Wagner, BahaEddine Abrougui
|
|
6
6
|
Author-email: Hagen Wierstorf <hwierstorf@audeering.com>, Christian Geng <cgeng@audeering.com>
|
|
@@ -51,7 +51,7 @@ Description-Content-Type: text/x-rst
|
|
|
51
51
|
License-File: LICENSE
|
|
52
52
|
Requires-Dist: audeer>=2.0.0
|
|
53
53
|
Requires-Dist: audiofile>=0.4.0
|
|
54
|
-
Requires-Dist:
|
|
54
|
+
Requires-Dist: iso639-lang
|
|
55
55
|
Requires-Dist: iso3166
|
|
56
56
|
Requires-Dist: oyaml
|
|
57
57
|
Requires-Dist: pandas>=2.1.0
|
|
@@ -8,6 +8,7 @@ import sys
|
|
|
8
8
|
import typing as typing
|
|
9
9
|
|
|
10
10
|
import iso639
|
|
11
|
+
from iso639.exceptions import InvalidLanguageValue
|
|
11
12
|
import iso3166
|
|
12
13
|
import numpy as np
|
|
13
14
|
import pandas as pd
|
|
@@ -1288,32 +1289,13 @@ def map_language(language: str) -> str:
|
|
|
1288
1289
|
'eng'
|
|
1289
1290
|
|
|
1290
1291
|
"""
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
except KeyError:
|
|
1297
|
-
pass
|
|
1298
|
-
elif len(language) == 3:
|
|
1299
|
-
try:
|
|
1300
|
-
result = iso639.languages.get(part3=language.lower())
|
|
1301
|
-
except KeyError:
|
|
1302
|
-
pass
|
|
1303
|
-
else:
|
|
1304
|
-
try:
|
|
1305
|
-
result = iso639.languages.get(name=language.title())
|
|
1306
|
-
except KeyError:
|
|
1307
|
-
pass
|
|
1308
|
-
|
|
1309
|
-
if result is not None:
|
|
1310
|
-
result = result.part3
|
|
1311
|
-
|
|
1312
|
-
if not result:
|
|
1292
|
+
try:
|
|
1293
|
+
return iso639.Lang(
|
|
1294
|
+
language.title() if len(language) > 3 else language.lower()
|
|
1295
|
+
).pt3
|
|
1296
|
+
except InvalidLanguageValue:
|
|
1313
1297
|
raise ValueError(f"'{language}' is not supported by ISO 639-3.")
|
|
1314
1298
|
|
|
1315
|
-
return result
|
|
1316
|
-
|
|
1317
1299
|
|
|
1318
1300
|
def read_csv(
|
|
1319
1301
|
*args,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: audformat
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: Python implementation of audformat
|
|
5
5
|
Author: Johannes Wagner, BahaEddine Abrougui
|
|
6
6
|
Author-email: Hagen Wierstorf <hwierstorf@audeering.com>, Christian Geng <cgeng@audeering.com>
|
|
@@ -51,7 +51,7 @@ Description-Content-Type: text/x-rst
|
|
|
51
51
|
License-File: LICENSE
|
|
52
52
|
Requires-Dist: audeer>=2.0.0
|
|
53
53
|
Requires-Dist: audiofile>=0.4.0
|
|
54
|
-
Requires-Dist:
|
|
54
|
+
Requires-Dist: iso639-lang
|
|
55
55
|
Requires-Dist: iso3166
|
|
56
56
|
Requires-Dist: oyaml
|
|
57
57
|
Requires-Dist: pandas>=2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|