audformat 1.1.3__tar.gz → 1.1.4__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.1.3 → audformat-1.1.4}/.github/workflows/publish.yml +1 -1
- {audformat-1.1.3 → audformat-1.1.4}/CHANGELOG.rst +8 -0
- {audformat-1.1.3 → audformat-1.1.4}/PKG-INFO +1 -1
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/database.py +5 -3
- {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/PKG-INFO +1 -1
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_database_get.py +70 -0
- {audformat-1.1.3 → audformat-1.1.4}/.github/workflows/doc.yml +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/.github/workflows/linter.yml +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/.github/workflows/test.yml +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/.gitignore +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/.pre-commit-config.yaml +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/CONTRIBUTING.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/LICENSE +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/README.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/__init__.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/__init__.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/attachment.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/column.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/common.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/conftest.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/define.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/errors.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/index.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/media.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/rater.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/scheme.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/split.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/table.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/testing.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/typing.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/core/utils.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/define/__init__.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/errors/__init__.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/testing/__init__.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat/utils/__init__.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/SOURCES.txt +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/dependency_links.txt +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/requires.txt +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/top_level.txt +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/benchmarks/benchmark_union.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/accessing-data.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.define.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.errors.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.testing.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.utils.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.define.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.errors.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.testing.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.utils.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/changelog.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/combine-tables.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/conf.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/contributing.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/create-database.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/data-conventions.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/data-example.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/data-format.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/data-header.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/data-introduction.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/data-misc-tables.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/data-tables.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/emodb-example.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/genindex.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/index.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/install.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/map-scheme.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/pics/audformat-database.dot +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/pics/audformat-misc-table.dot +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/pics/audformat-table.dot +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/requirements.txt +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/docs/update-database.rst +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/pyproject.toml +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/requirements.txt +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/setup.cfg +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/conftest.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/requirements.txt +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_attachment.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_column.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_common.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_database.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_eq.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_errors.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_index.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_misc_table.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_scheme.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_table.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_utils.py +0 -0
- {audformat-1.1.3 → audformat-1.1.4}/tests/test_utils_concat.py +0 -0
|
@@ -59,7 +59,7 @@ jobs:
|
|
|
59
59
|
python -m sphinx docs/ docs/_build/ -b html
|
|
60
60
|
|
|
61
61
|
- name: Deploy documentation to Github pages
|
|
62
|
-
uses: peaceiris/actions-gh-pages@
|
|
62
|
+
uses: peaceiris/actions-gh-pages@v4
|
|
63
63
|
with:
|
|
64
64
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
65
65
|
publish_dir: ./docs/_build
|
|
@@ -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.1.4 (2024-05-15)
|
|
11
|
+
--------------------------
|
|
12
|
+
|
|
13
|
+
* Fixed: ``audformat.Database.get()``,
|
|
14
|
+
if its argument ``additional_schemes``
|
|
15
|
+
contains a non-existent scheme
|
|
16
|
+
|
|
17
|
+
|
|
10
18
|
Version 1.1.3 (2024-04-26)
|
|
11
19
|
--------------------------
|
|
12
20
|
|
|
@@ -856,16 +856,18 @@ class Database(HeaderBase):
|
|
|
856
856
|
objs = [obj]
|
|
857
857
|
for scheme in additional_schemes:
|
|
858
858
|
if len(obj) == 0:
|
|
859
|
-
|
|
859
|
+
# Skip searching for additional schemes,
|
|
860
|
+
# if main scheme does return empty frame
|
|
861
|
+
additional_obj = empty_frame(scheme)
|
|
860
862
|
else:
|
|
861
|
-
|
|
863
|
+
additional_obj = self.get(
|
|
862
864
|
scheme,
|
|
863
865
|
strict=strict,
|
|
864
866
|
map=map,
|
|
865
867
|
original_column_names=original_column_names,
|
|
866
868
|
aggregate_function=aggregate_function,
|
|
867
869
|
)
|
|
868
|
-
objs.append(
|
|
870
|
+
objs.append(additional_obj)
|
|
869
871
|
if len(objs) > 1:
|
|
870
872
|
obj = utils.concat(objs)
|
|
871
873
|
obj = obj.loc[index]
|
|
@@ -387,6 +387,76 @@ def wrong_scheme_labels_db(tmpdir):
|
|
|
387
387
|
axis=1,
|
|
388
388
|
),
|
|
389
389
|
),
|
|
390
|
+
# Ensure that requesting a non-existing scheme
|
|
391
|
+
# before an existing scheme
|
|
392
|
+
# does return values for existing schemes.
|
|
393
|
+
# https://github.com/audeering/audformat/issues/426
|
|
394
|
+
(
|
|
395
|
+
"mono_db",
|
|
396
|
+
"gender",
|
|
397
|
+
["non-existing", "sex"],
|
|
398
|
+
pd.concat(
|
|
399
|
+
[
|
|
400
|
+
pd.Series(
|
|
401
|
+
["female", "", "male"],
|
|
402
|
+
index=audformat.filewise_index(["f1.wav", "f2.wav", "f3.wav"]),
|
|
403
|
+
dtype="string",
|
|
404
|
+
name="gender",
|
|
405
|
+
),
|
|
406
|
+
pd.Series(
|
|
407
|
+
[],
|
|
408
|
+
index=audformat.filewise_index(),
|
|
409
|
+
dtype="object",
|
|
410
|
+
name="non-existing",
|
|
411
|
+
),
|
|
412
|
+
pd.Series(
|
|
413
|
+
["female", np.NaN, "male"],
|
|
414
|
+
index=audformat.filewise_index(["f1.wav", "f2.wav", "f3.wav"]),
|
|
415
|
+
dtype="object",
|
|
416
|
+
name="sex",
|
|
417
|
+
),
|
|
418
|
+
],
|
|
419
|
+
axis=1,
|
|
420
|
+
),
|
|
421
|
+
),
|
|
422
|
+
# Ensure that requesting a non-existing scheme
|
|
423
|
+
# before an existing scheme
|
|
424
|
+
# does return values for existing schemes.
|
|
425
|
+
# https://github.com/audeering/audformat/issues/426
|
|
426
|
+
(
|
|
427
|
+
"mono_db",
|
|
428
|
+
"gender",
|
|
429
|
+
["numbers", "non-existing", "sex"],
|
|
430
|
+
pd.concat(
|
|
431
|
+
[
|
|
432
|
+
pd.Series(
|
|
433
|
+
["female", "", "male"],
|
|
434
|
+
index=audformat.filewise_index(["f1.wav", "f2.wav", "f3.wav"]),
|
|
435
|
+
dtype="string",
|
|
436
|
+
name="gender",
|
|
437
|
+
),
|
|
438
|
+
pd.Series(
|
|
439
|
+
[0, 1, 2],
|
|
440
|
+
index=audformat.filewise_index(["f1.wav", "f2.wav", "f3.wav"]),
|
|
441
|
+
dtype="Int64",
|
|
442
|
+
name="numbers",
|
|
443
|
+
),
|
|
444
|
+
pd.Series(
|
|
445
|
+
[],
|
|
446
|
+
index=audformat.filewise_index(),
|
|
447
|
+
dtype="object",
|
|
448
|
+
name="non-existing",
|
|
449
|
+
),
|
|
450
|
+
pd.Series(
|
|
451
|
+
["female", np.NaN, "male"],
|
|
452
|
+
index=audformat.filewise_index(["f1.wav", "f2.wav", "f3.wav"]),
|
|
453
|
+
dtype="object",
|
|
454
|
+
name="sex",
|
|
455
|
+
),
|
|
456
|
+
],
|
|
457
|
+
axis=1,
|
|
458
|
+
),
|
|
459
|
+
),
|
|
390
460
|
(
|
|
391
461
|
"mono_db",
|
|
392
462
|
"winner",
|
|
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
|
|
File without changes
|