cellml / cellml1to2 Goto Github PK
View Code? Open in Web Editor NEWAttempt at using XSLT to translate CellML 1.0 and 1.1 documents into the CellML 2.0 format.
License: Apache License 2.0
Attempt at using XSLT to translate CellML 1.0 and 1.1 documents into the CellML 2.0 format.
License: Apache License 2.0
We need to check that models using meter
or liter
get converted. Same for deka
if there are any. See cellml/cellml-specification#21
This model describes the following model:
def model van_der_pol_model_1928 as
def comp main as
def unit per_second as
unit second {expo: -1};
enddef;
var time: second;
var x: dimensionless {init: -2};
var y: dimensionless {init: 0};
var epsilon: dimensionless {init: 1};
ode(x, time) = y*1{per_second};
ode(y, time) = (epsilon*(1{dimensionless}-sqr(x))*y-x)*1{per_second};
enddef;
enddef;
As we can see, per_second
is defined within the main
component. If you convert this model to CellML 2.0 using cellml1to2.xsl, you end up with this model, which also defines per_second
in the main
component. However, CellML 2.0 only allows units to be defined in the model
element (see section 8 of https://www.cellml.org/specifications/cellml_2.0). So, here, we end up with an invalid CellML 2.0 file.
Hi all,
IMHO, I am using a cohort of CellML models which are 1.0/1.1 and these models do not have href line like here: https://github.com/cellml/cellml1to2/blob/master/test-models/cellml1.0.xml#L2. But if I remove that href line and convert CellML 1.0/1.1 to 2.0, I don't get any error. IMHO, what is the purpose of href line?
Thanks,
Dewan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.