Add MiscTable.type
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
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
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_filewiseis_segmented
and set both toFalse, 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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from audeering/audformat
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
question
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in audeering/audformat
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
instance instance add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
searxng/searx-instances#941 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
FluidNumerics/fluid-walk-blocker#89 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day