A list for the developers of CellML tools

Text archives Help


[cellml-dev] cellml-tools-developers Digest, Vol 46, Issue 7, relative URIs not working


Chronological Thread 
  • From: p.pannarale at gmail.com (Paolo Pannarale)
  • Subject: [cellml-dev] cellml-tools-developers Digest, Vol 46, Issue 7, relative URIs not working
  • Date: Mon, 9 Jan 2012 16:38:17 +0100

I rewrote all the xlink:hrefs from relative file paths to file URIs (with
minor modifications: "file:///" instead of java generated "file:/") and now
all seems to work properly...
Thanks, Paolo

On Sat, Dec 31, 2011 at 12:00 AM, <
cellml-tools-developers-request at cellml.org> wrote:

> Send cellml-tools-developers mailing list submissions to
> cellml-tools-developers at cellml.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.cellml.org/mailman/listinfo/cellml-tools-developers
> or, via email, send a message with subject or body 'help' to
> cellml-tools-developers-request at cellml.org
>
> You can reach the person managing the list at
> cellml-tools-developers-owner at cellml.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cellml-tools-developers digest..."
>
>
> Today's Topics:
>
> 1. CellML2C test program & imports - answer to Paolo's question
> (Andrew Miller)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 30 Dec 2011 15:39:29 +1300
> From: Andrew Miller <ak.miller at auckland.ac.nz>
> Subject: [cellml-dev] CellML2C test program & imports - answer to
> Paolo's question
> To: A list for the developers of CellML tools
> <cellml-tools-developers at cellml.org>
> Message-ID: <4EFD2461.6040805 at auckland.ac.nz>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> On 30/12/11 06:07, Paolo Pannarale wrote:
> > Dear colleagues, I'm asking your help because I'm stuck in this point in
> > my project where I try to simulate a model through the cellml api.
> > I'm trying to run the cellml2c.cpp test in the cellml api ccgs src and i
> > can run it on a single file model (the elowitz_liebler_2000 in the
> > repository) but it fails on my model (available at
> > http://www.megaupload.com/?d=NF3DTVQF) and on a Cooling's one
> > (Bugbuster). The test throws an exception at
> mod->fullyinstantiateimports().
> > The same models are correctly opened and simulated in opencell.
> > Do you have any suggestion?
>
> Hi Paolo,
>
> This means it is trying to load the imports but failing.
>
> With CellML 1.1 models and the test programs that come with the API, a
> common cause of the problem is invoking CellML2C without giving it a
> full URL; it expects a URL, and while libxml2 will process filenames as
> URLs relative to the current directory, the CellML API doesn't have this
> logic built in when it needs to manipulate URLs, so it runs into
> difficulty trying to work out relative URLs if you don't start off with
> an absolute URL.
>
> With your model:
>
> $ ~/Documents/cellml-api/CellML2C target.cellml
> terminate called after throwing an instance of
> 'iface::cellml_api::CellMLException'
> what(): std::exception
> Aborted
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.cellml.org/pipermail/cellml-tools-developers/attachments/20120109/4a3f2f41/attachment.htm>



  • [cellml-dev] cellml-tools-developers Digest, Vol 46, Issue 7, relative URIs not working, Paolo Pannarale, 01/10/2012

Archive powered by MHonArc 2.6.18.

Top of page