Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sybilSBML
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
general
ccb
sybilSBML
Commits
c9d9ab22
Commit
c9d9ab22
authored
8 years ago
by
Habil, Ardalan (arhab001)
Browse files
Options
Downloads
Patches
Plain Diff
UNITS removed; no more printf in R ; validation now in R
parent
c3f0c417
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sybilSBML.c
+8
-28
8 additions, 28 deletions
src/sybilSBML.c
with
8 additions
and
28 deletions
src/sybilSBML.c
+
8
−
28
View file @
c9d9ab22
...
...
@@ -1751,29 +1751,29 @@ SEXP exportSBML (SEXP version, SEXP level,SEXP FbcLevel, SEXP filename,SEXP sybi
* Creates UnitDefinition objects inside the Model object.
*
*---------------------------------------------------------------------------*/
/*
unitdef = Model_createUnitDefinition(model);
UnitDefinition_setId(unitdef,"litre_per_mole_per_second");
/
*
Creates an Unit inside the UnitDefinition object ("litre_per_mole_per_second")
*/
/
/
Creates an Unit inside the UnitDefinition object ("litre_per_mole_per_second")
unit = UnitDefinition_createUnit(unitdef);
Unit_setKind(unit,UNIT_KIND_MOLE);
Unit_setExponent(unit,-1);
/
*
Creates an Unit inside the UnitDefinition object ("litre_per_mole_per_second")
*/
/
/
Creates an Unit inside the UnitDefinition object ("litre_per_mole_per_second")
unit = UnitDefinition_createUnit(unitdef);
Unit_setKind(unit,UNIT_KIND_LITRE);
Unit_setExponent(unit,1);
/
*
Creates an Unit inside the UnitDefinition object ("litre_per_mole_per_second")
*/
/
/
Creates an Unit inside the UnitDefinition object ("litre_per_mole_per_second")
unit = UnitDefinition_createUnit(unitdef);
Unit_setKind(unit,UNIT_KIND_SECOND);
Unit_setExponent(unit,-1);
*/
/*---------------------------------------------------------------------------
*
...
...
@@ -2275,32 +2275,12 @@ SEXP exportSBML (SEXP version, SEXP level,SEXP FbcLevel, SEXP filename,SEXP sybi
}
}
// if VALIDATION TRUE FIND ERRORS
if
(
LOGICAL
(
validation
)[
0
]
==
1
)
{
unsigned
int
errors
=
0
;
errors
=
SBMLDocument_getNumErrors
(
sbmlDoc
);
// errors += SBMLDocument_checkConsistency(sbmlDoc); warnings
if
(
errors
>
0
){
SBMLDocument_printErrors
(
sbmlDoc
,
stdout
);
printf
(
"
\n
"
);
}
else
printf
(
"No errors
\n
"
);
}
// write SBML file
int
result
=
writeSBML
(
sbmlDoc
,
fname
);
SEXP
out
=
R_NilValue
;
if
(
result
)
{
printf
(
"Wrote file %s
\n
"
,
fname
);
out
=
Rf_ScalarLogical
(
1
);
}
else
{
printf
(
"Cloud not write file %s
\n
"
,
fname
);
out
=
Rf_ScalarLogical
(
0
);
}
if
(
result
)
out
=
Rf_ScalarLogical
(
1
);
else
out
=
Rf_ScalarLogical
(
0
);
return
out
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment