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.
Files changed (90) hide show
  1. {audformat-1.1.3 → audformat-1.1.4}/.github/workflows/publish.yml +1 -1
  2. {audformat-1.1.3 → audformat-1.1.4}/CHANGELOG.rst +8 -0
  3. {audformat-1.1.3 → audformat-1.1.4}/PKG-INFO +1 -1
  4. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/database.py +5 -3
  5. {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/PKG-INFO +1 -1
  6. {audformat-1.1.3 → audformat-1.1.4}/tests/test_database_get.py +70 -0
  7. {audformat-1.1.3 → audformat-1.1.4}/.github/workflows/doc.yml +0 -0
  8. {audformat-1.1.3 → audformat-1.1.4}/.github/workflows/linter.yml +0 -0
  9. {audformat-1.1.3 → audformat-1.1.4}/.github/workflows/test.yml +0 -0
  10. {audformat-1.1.3 → audformat-1.1.4}/.gitignore +0 -0
  11. {audformat-1.1.3 → audformat-1.1.4}/.pre-commit-config.yaml +0 -0
  12. {audformat-1.1.3 → audformat-1.1.4}/CONTRIBUTING.rst +0 -0
  13. {audformat-1.1.3 → audformat-1.1.4}/LICENSE +0 -0
  14. {audformat-1.1.3 → audformat-1.1.4}/README.rst +0 -0
  15. {audformat-1.1.3 → audformat-1.1.4}/audformat/__init__.py +0 -0
  16. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/__init__.py +0 -0
  17. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/attachment.py +0 -0
  18. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/column.py +0 -0
  19. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/common.py +0 -0
  20. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/conftest.py +0 -0
  21. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/define.py +0 -0
  22. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/errors.py +0 -0
  23. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/index.py +0 -0
  24. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/media.py +0 -0
  25. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/rater.py +0 -0
  26. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/scheme.py +0 -0
  27. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/split.py +0 -0
  28. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/table.py +0 -0
  29. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/testing.py +0 -0
  30. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/typing.py +0 -0
  31. {audformat-1.1.3 → audformat-1.1.4}/audformat/core/utils.py +0 -0
  32. {audformat-1.1.3 → audformat-1.1.4}/audformat/define/__init__.py +0 -0
  33. {audformat-1.1.3 → audformat-1.1.4}/audformat/errors/__init__.py +0 -0
  34. {audformat-1.1.3 → audformat-1.1.4}/audformat/testing/__init__.py +0 -0
  35. {audformat-1.1.3 → audformat-1.1.4}/audformat/utils/__init__.py +0 -0
  36. {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/SOURCES.txt +0 -0
  37. {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/dependency_links.txt +0 -0
  38. {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/requires.txt +0 -0
  39. {audformat-1.1.3 → audformat-1.1.4}/audformat.egg-info/top_level.txt +0 -0
  40. {audformat-1.1.3 → audformat-1.1.4}/benchmarks/benchmark_union.py +0 -0
  41. {audformat-1.1.3 → audformat-1.1.4}/docs/accessing-data.rst +0 -0
  42. {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.define.rst +0 -0
  43. {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.errors.rst +0 -0
  44. {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.rst +0 -0
  45. {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.testing.rst +0 -0
  46. {audformat-1.1.3 → audformat-1.1.4}/docs/api/audformat.utils.rst +0 -0
  47. {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.define.rst +0 -0
  48. {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.errors.rst +0 -0
  49. {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.rst +0 -0
  50. {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.testing.rst +0 -0
  51. {audformat-1.1.3 → audformat-1.1.4}/docs/api-src/audformat.utils.rst +0 -0
  52. {audformat-1.1.3 → audformat-1.1.4}/docs/changelog.rst +0 -0
  53. {audformat-1.1.3 → audformat-1.1.4}/docs/combine-tables.rst +0 -0
  54. {audformat-1.1.3 → audformat-1.1.4}/docs/conf.py +0 -0
  55. {audformat-1.1.3 → audformat-1.1.4}/docs/contributing.rst +0 -0
  56. {audformat-1.1.3 → audformat-1.1.4}/docs/create-database.rst +0 -0
  57. {audformat-1.1.3 → audformat-1.1.4}/docs/data-conventions.rst +0 -0
  58. {audformat-1.1.3 → audformat-1.1.4}/docs/data-example.rst +0 -0
  59. {audformat-1.1.3 → audformat-1.1.4}/docs/data-format.rst +0 -0
  60. {audformat-1.1.3 → audformat-1.1.4}/docs/data-header.rst +0 -0
  61. {audformat-1.1.3 → audformat-1.1.4}/docs/data-introduction.rst +0 -0
  62. {audformat-1.1.3 → audformat-1.1.4}/docs/data-misc-tables.rst +0 -0
  63. {audformat-1.1.3 → audformat-1.1.4}/docs/data-tables.rst +0 -0
  64. {audformat-1.1.3 → audformat-1.1.4}/docs/emodb-example.rst +0 -0
  65. {audformat-1.1.3 → audformat-1.1.4}/docs/genindex.rst +0 -0
  66. {audformat-1.1.3 → audformat-1.1.4}/docs/index.rst +0 -0
  67. {audformat-1.1.3 → audformat-1.1.4}/docs/install.rst +0 -0
  68. {audformat-1.1.3 → audformat-1.1.4}/docs/map-scheme.rst +0 -0
  69. {audformat-1.1.3 → audformat-1.1.4}/docs/pics/audformat-database.dot +0 -0
  70. {audformat-1.1.3 → audformat-1.1.4}/docs/pics/audformat-misc-table.dot +0 -0
  71. {audformat-1.1.3 → audformat-1.1.4}/docs/pics/audformat-table.dot +0 -0
  72. {audformat-1.1.3 → audformat-1.1.4}/docs/requirements.txt +0 -0
  73. {audformat-1.1.3 → audformat-1.1.4}/docs/update-database.rst +0 -0
  74. {audformat-1.1.3 → audformat-1.1.4}/pyproject.toml +0 -0
  75. {audformat-1.1.3 → audformat-1.1.4}/requirements.txt +0 -0
  76. {audformat-1.1.3 → audformat-1.1.4}/setup.cfg +0 -0
  77. {audformat-1.1.3 → audformat-1.1.4}/tests/conftest.py +0 -0
  78. {audformat-1.1.3 → audformat-1.1.4}/tests/requirements.txt +0 -0
  79. {audformat-1.1.3 → audformat-1.1.4}/tests/test_attachment.py +0 -0
  80. {audformat-1.1.3 → audformat-1.1.4}/tests/test_column.py +0 -0
  81. {audformat-1.1.3 → audformat-1.1.4}/tests/test_common.py +0 -0
  82. {audformat-1.1.3 → audformat-1.1.4}/tests/test_database.py +0 -0
  83. {audformat-1.1.3 → audformat-1.1.4}/tests/test_eq.py +0 -0
  84. {audformat-1.1.3 → audformat-1.1.4}/tests/test_errors.py +0 -0
  85. {audformat-1.1.3 → audformat-1.1.4}/tests/test_index.py +0 -0
  86. {audformat-1.1.3 → audformat-1.1.4}/tests/test_misc_table.py +0 -0
  87. {audformat-1.1.3 → audformat-1.1.4}/tests/test_scheme.py +0 -0
  88. {audformat-1.1.3 → audformat-1.1.4}/tests/test_table.py +0 -0
  89. {audformat-1.1.3 → audformat-1.1.4}/tests/test_utils.py +0 -0
  90. {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@v3
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: audformat
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: Python implementation of audformat
5
5
  Author: BahaEddine Abrougui
6
6
  Author-email: Hagen Wierstorf <hwierstorf@audeering.com>, Johannes Wagner <jwagner@audeering.com>
@@ -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
- obj = empty_frame(scheme)
859
+ # Skip searching for additional schemes,
860
+ # if main scheme does return empty frame
861
+ additional_obj = empty_frame(scheme)
860
862
  else:
861
- obj = self.get(
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(obj)
870
+ objs.append(additional_obj)
869
871
  if len(objs) > 1:
870
872
  obj = utils.concat(objs)
871
873
  obj = obj.loc[index]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: audformat
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: Python implementation of audformat
5
5
  Author: BahaEddine Abrougui
6
6
  Author-email: Hagen Wierstorf <hwierstorf@audeering.com>, Johannes Wagner <jwagner@audeering.com>
@@ -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