Menu

#10 Function name in data generator not preserved

2.3
pending
None
5
2016-07-24
2016-07-13
No

From Chris Myers
I wanted to include functions in my math for DataGenerators, but it always turns them into “misc” and does not preserve the function name. I was thinking to use this to indicate, for example, “mean” of a result of a repeated task.

Related

Bugs: #10

Discussion

  • Richard Adams

    Richard Adams - 2016-07-18
    • assigned_to: Richard Adams
     
  • Richard Adams

    Richard Adams - 2016-07-18

    Can you send some code you've tried, or an example of the MathML you'd expect, just so I'm clear what is the problem?

     
    • Chris Myers

      Chris Myers - 2016-07-21

      I think I did something like this:

      Libsedml.parseFormulaString(mean(X));

      And I think it came up with “misc”.

      Chris

      On Jul 18, 2016, at 3:03 PM, Richard Adams otter606@users.sf.net wrote:

      Can you send some code you've tried, or an example of the MathML you'd expect, just so I'm clear what is the problem?

      [bugs:#10] https://sourceforge.net/p/jlibsedml/bugs/10/ Function name in data generator not preserved

      Status: open
      Group: 2.3
      Created: Wed Jul 13, 2016 09:09 PM UTC by Richard Adams
      Last Updated: Mon Jul 18, 2016 09:02 PM UTC
      Owner: Richard Adams

      From Chris Myers
      I wanted to include functions in my math for DataGenerators, but it always turns them into “misc” and does not preserve the function name. I was thinking to use this to indicate, for example, “mean” of a result of a repeated task.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/jlibsedml/bugs/10/ https://sourceforge.net/p/jlibsedml/bugs/10/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #10

  • Richard Adams

    Richard Adams - 2016-07-24

    Hi Chris,
    'mean' isn't a supported MathML function in SED-ML level 1 - the only vector functions are sum, min, max and product are supported ( see section 2.2.1 of the spec). If you wanted to create a 'mean' function, then you could follow the example of org.jlibsedml.mathsymbols.ProductSymbol, MinSymbol etc - but this would be invalid SEDML

     
    • Chris Myers

      Chris Myers - 2016-07-24

      I agree it is invalid, but I think I also tried other functions and all functions I tried turned into “misc”. Would be nice if serialized any function you don’t recognize preserving the “name”. This would allow experimentation with extensions to the mathML subset.

      Chris

      On Jul 24, 2016, at 3:15 PM, Richard Adams otter606@users.sf.net wrote:

      Hi Chris,
      'mean' isn't a supported MathML function in SED-ML level 1 - the only vector functions are sum, min, max and product are supported ( see section 2.2.1 of the spec). If you wanted to create a 'mean' function, then you could follow the example of org.jlibsedml.mathsymbols.ProductSymbol, MinSymbol etc - but this would be invalid SEDML

      [bugs:#10] https://sourceforge.net/p/jlibsedml/bugs/10/ Function name in data generator not preserved

      Status: open
      Group: 2.3
      Created: Wed Jul 13, 2016 09:09 PM UTC by Richard Adams
      Last Updated: Mon Jul 18, 2016 09:03 PM UTC
      Owner: Richard Adams

      From Chris Myers
      I wanted to include functions in my math for DataGenerators, but it always turns them into “misc” and does not preserve the function name. I was thinking to use this to indicate, for example, “mean” of a result of a repeated task.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/jlibsedml/bugs/10/ https://sourceforge.net/p/jlibsedml/bugs/10/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #10

      • Richard Adams

        Richard Adams - 2016-07-24

        I've committed in a test 'testExtensionSymbolMean()' in org.jlibsedml.mathsymbols.SymbolTests
        that shows how to create and register a new symbol with jmathml and provide an implementation of its functionality - does this do what you want?

         
        • Chris Myers

          Chris Myers - 2016-07-24

          Yes, that should work.

          On Jul 24, 2016, at 4:18 PM, Richard Adams otter606@users.sf.net wrote:

          I've committed in a test 'testExtensionSymbolMean()' in org.jlibsedml.mathsymbols.SymbolTests
          that shows how to create and register a new symbol with jmathml and provide an implementation of its functionality - does this do what you want?

          [bugs:#10] https://sourceforge.net/p/jlibsedml/bugs/10/ Function name in data generator not preserved

          Status: pending
          Group: 2.3
          Created: Wed Jul 13, 2016 09:09 PM UTC by Richard Adams
          Last Updated: Sun Jul 24, 2016 09:15 PM UTC
          Owner: Richard Adams

          From Chris Myers
          I wanted to include functions in my math for DataGenerators, but it always turns them into “misc” and does not preserve the function name. I was thinking to use this to indicate, for example, “mean” of a result of a repeated task.

          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/jlibsedml/bugs/10/ https://sourceforge.net/p/jlibsedml/bugs/10/
          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

           

          Related

          Bugs: #10

  • Richard Adams

    Richard Adams - 2016-07-24
    • status: open --> pending
     
MongoDB Logo MongoDB