Giter Site home page Giter Site logo

Textgrid validation about praatio HOT 7 CLOSED

timmahrt avatar timmahrt commented on July 28, 2024
Textgrid validation

from praatio.

Comments (7)

GalaxieT avatar GalaxieT commented on July 28, 2024 1

How about just show warnings and info about it, instead of interrupting the process?

from praatio.

timmahrt avatar timmahrt commented on July 28, 2024 1

I could imagine all three scenarios would be useful in different cases: silence, warn, exit.

from praatio.

timmahrt avatar timmahrt commented on July 28, 2024 1

I'm getting closish to a release. Praatio 5.0 will feature Textgrid validation. Users will have a choice to to silently ignore errors, print to the screen (default behavior), or to stop execution on errors.

Wholistic validation is done on save but more narrow validation is done when automatic "unexpected" behavior might occur, such as when adding new entries to a tier or when adding a tier to a textgrid.
PR to change this and a lot of other things is here: #28

I still need to write lots of tests and update the documentation--I'm going to aim to have it done in a week or two.

from praatio.

GalaxieT avatar GalaxieT commented on July 28, 2024 1

Nevermind, and the new release looks amazing!

from praatio.

timmahrt avatar timmahrt commented on July 28, 2024

Adding a parameter to addTier to enforce lengths could be prblematic because its used in a lot of places.

What about a "safety" mode set on the Textgrid. If turned on, some operations will throw errors if they encounter unexpected data? Although that sounds kindof vague and hard to understand for the user about when or when something is or is not being validated.

from praatio.

GalaxieT avatar GalaxieT commented on July 28, 2024

That's very nice!

from praatio.

timmahrt avatar timmahrt commented on July 28, 2024

Praatio 5.0 is now released. As with my previous comment functions that may result in automatic "unexpected" behavior take a flag to either silently change, change and print a warning, or throw an exception.

Sorry for the delay, I was too ambitious in all of the features that I added into this release!

from praatio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.