Code Monkey home page Code Monkey logo

Comments (1)

luciansmith avatar luciansmith commented on July 19, 2024

The 'semantic' branch of the test suite tests elements of SBML that can be tested numerically: if you interpret the SBML incorrectly, you will get incorrect results. The problem with units is that they have no numerical impact on SBML at all, and therefore cannot be usefully included in the semantic tests. In other words, we can only check whether you got the answer "0.5", and can't check whether you correctly got "0.5 nm" vs. "0.5 mm".

We do also have the 'syntactic' branch which just tests internal model validity. All of the validation rules 105** in the SBML specification involve units, and therefore might be appropriate for your test? The syntactic tests are in the release and not in the source code; the link is https://github.com/sbmlteam/sbml-test-suite/releases/download/3.4.0/syntactic_tests.v3.4.0.zip (They're actually pulled from the validation tests in the libsbml source.) However, many of these models, while valid, lack numerical values for some or all of their elements, so again might not work for testing if something properly returns '0.5 nm'.

It may be that this also won't help your use case, and you'll have to make your own. Or, if you truly only need a single model, I could probably adjust an existing model to add units for you if you're unsure how to do this yourself (or you can just use the model you got from SimBiology for the purpose).

Do ask more questions if you have them, or if anything was unclear!

from sbml-test-suite.

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.