question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why filter out empty labels from Intervals?

See original GitHub issue
        if tierType == INTERVAL_TIER:
            while True:
                try:
                    timeStart, timeStartI = _fetchRow(tierData,
                                                      "xmin = ", labelI)
                    timeEnd, timeEndI = _fetchRow(tierData,
                                                  "xmax = ", timeStartI)
                    label, labelI = _fetchRow(tierData, "text =", timeEndI)
                except (ValueError, IndexError):
                    break
                
                label = label.strip()
                if label == "":
                    continue
                tierEntryList.append((timeStart, timeEnd, label))
            tier = IntervalTier(tierName, tierEntryList, tierStart, tierEnd)

Why wouldn’t I want the intervals exactly as they appear in the file?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
macrilukecommented, May 13, 2020

Pulled it this morning, couldn’t be happier! Thanks for the quick help on this.

1reaction
macrilukecommented, May 13, 2020

I’m working with forced alignment of a transcribed audio dataset- I have to have adjust the audio and textgrids to include a silence at the start and end.

I think perhaps this preprocessing behavior isn’t immediately intuitive- I suggest an optional ‘raw’ flag argument could allow for reading in everything in the file. Or perhaps an optional processor function could be supplied that would handle this sort of preprocessing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: JQL excluding label while keeping empty label issu...
Solved: Hi, I'm trying to exclude a label and found a solution, except that it excludes empty labels. Does anyone know of a...
Read more >
Data are not returned for specific interval and labels. #1899
On 90d interval the return array from VM is empty. When I change interval to 6 months or 30 days (in Grafana) data...
Read more >
Subsetting event data - bupaR
Resource labels. Similar to the activity filter, the resource filter can be used to filter events by listing on or more resources. patients...
Read more >
Querying basics - Prometheus.io
It is possible to filter these time series further by appending a comma separated list of label matchers in curly braces ( {}...
Read more >
Google Sheets FILTER function: what it is and how to use it
Learn how to use the powerful Google Sheets filter function to filter (display) your datasets based on specific criteria.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found