Code Monkey home page Code Monkey logo

Comments (5)

gmarupilla avatar gmarupilla commented on September 24, 2024

For reference:

BIOMD0000000793.omex.zip

from biosimulators_copasi.

jonrkarr avatar jonrkarr commented on September 24, 2024

If this is always an issue for the COPASI Python interface, the command line program will need to be implemented differently or COPASI will need to fix the problem.

This won't crash the main BioSimulations application because the simulation jobs will be run on the cluster. We realized that some jobs would not complete successfully, and plan to store the stdout and stderr logs. This is already part of the BioSimulations data model.

from biosimulators_copasi.

fbergmann avatar fbergmann commented on September 24, 2024

I'll have a look at this, in general though, it would be great if you could file issues like that on our issue tracker, so we know about them and can resolve them. I've done this now, and will track it there.

http://tracker.copasi.org/show_bug.cgi?id=2908

from biosimulators_copasi.

fbergmann avatar fbergmann commented on September 24, 2024

This is just to let you know that this has been resolved in the current python-copasi package on pypi (and any version > 4.29.227 will do). Now you will still get the exception, but you could handle it if you so choose:

import COPASI
dm = COPASI.CRootContainer.addDatamodel()
try:
  dm.openCombineArchive('BIOMD0000000793.omex')
except COPASI.CCopasiException as e:
  print(e.getMessage().getText())

which for your model would give you something like:

>EXCEPTION 2020-08-11T08:40:52<
  SEDML (4): Could not open file "/tmp/copasi/fbergmann/q8fkec53/Chen2011/1.xml". Note: The reference SBML model in SEDML document must be saved in the same directory as the SEDML document using the source attribute value as the file name .

from biosimulators_copasi.

jonrkarr avatar jonrkarr commented on September 24, 2024

In my testing, this is fixed. Thanks @fbergmann!

from biosimulators_copasi.

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.