Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add MiscTable.type

Open
#300 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start by locating the MiscTable definition and the existing Table properties, then inspect any tests covering table metadata or audformat.is_filewise_index. Confirm the intended behavior with the issue discussion, implement the agreed MiscTable.type value, and add or update tests showing that it is reported as 'misc'.

Written by the indexing model from the issue text.

Description

question wontfix

When looping through all tables of a database it might become easier if MiscTable would have a few more properties from Table.
For example, if you would like to gather some metadata in a single loop over all tables, and you would like to store how many filewise tables you have, you would need a check like:

if not isinstance(table, audformat.MiscTable):
    if table.is_filewise:
        count += 1

First I thought it would be good to have

  • is_filewise
  • is_segmented
    and set both to False, but I we could then have the following inconsitency:
>>> table = audformat.MiscTable(pd.Index(["f1"], name="file", dtype="string"))
>>> table.is_filewise
False
>>> audformat.is_filewise_index(table)
True

So, I would maybe only thing about adding type and setting it to 'misc'?

Dominant language
Python
Stars
13
Forks
1
Avg merge
50m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from audeering/audformat

All issues in audeering/audformat

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.