Skip to content
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

Extracting and creating new textgrid from existing textgrid file #24

Open
mamadyonline opened this issue Oct 25, 2022 · 2 comments
Open

Comments

@mamadyonline
Copy link

mamadyonline commented Oct 25, 2022

Hello,

An interesting feature of the library is the possibility to extract parts from an existing textgrid file. But the feature does not seem to work. I systematically get an AttributeError: 'IntervalTier' object has no attribute 'extract_part'.

Is this normal? How can I make it work?

By recreating the feature using your written function, I have the correct behavior, but with a textgrid that is not nice as the original textgrid. I would like to preserve all other properties of the original textgrid file, but only extracting intervals I need.

Thanks

@hbuschme
Copy link
Owner

Hello,

the method extract_parts is in the GitHub code, but has not been released yet. I can create a new release (that is then also distributed via pypi) in the next few days. Until then, you can clone the GitHub repo and then use setup.py to install it from source.

Thanks for the ‘bug’ report!

Hendrik

@mamadyonline
Copy link
Author

Oh ok... I should have known better.

I would be glad if you can create a new release. But if you think you better wait, no worries, I would just have the function locally for my needs right now.

Thanks for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants