-
Notifications
You must be signed in to change notification settings - Fork 0
Cannot print index returned by audinterface.Segment #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Indeed, when installing >>> index
MultiIndex([('/home/audeering.local/hwierstorf/audb/emodb/1.4.1/d3b62a9b/wav/03a01Fa.wav', ...),
('/home/audeering.local/hwierstorf/audb/emodb/1.4.1/d3b62a9b/wav/03a01Nc.wav', ...)],
names=['file', 'start', 'end']) |
I can also replicate this when I create the index myself: import audformat
files = list(db.files[:2])
starts = [0.12, 0.12]
ends = [1.76, 1.76]
index = audformat.segmented_index(files, starts, ends) and then >>> index
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/audeering.local/hwierstorf/.envs/test/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 1233, in __repr__
data = self._format_data()
File "/home/audeering.local/hwierstorf/.envs/test/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 1275, in _format_data
return format_object_summary(
File "/home/audeering.local/hwierstorf/.envs/test/lib/python3.8/site-packages/pandas/io/formats/printing.py", line 436, in format_object_summary
word = tail_item + sep + " "
TypeError: can only concatenate tuple (not "str") to tuple |
Interestingly, it seems to depend on the string of the files: files = ['a', 'b']
starts = [0.12, 0.12]
ends = [1.76, 1.76]
audformat.segmented_index(files, starts, ends) returns
|
This was indeed a |
This should be fixed in |
This was indeed fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested with version 1.0.2
But then
When I add the index to a dataframe it can be printed, so maybe this is a
pandas
error?The text was updated successfully, but these errors were encountered: