-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As Mattias noticed, diffusion and advection can apply to parameters.
Updated validation rules, added new ones, and added tests. Also fixed typo 'species:' -> 'spatial:'.
- Loading branch information
1 parent
cddb542
commit 4a6d8c1
Showing
16 changed files
with
830 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
...sbml/packages/spatial/validator/test/test-data/general-constraints/1223404-pass-00-02.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> | ||
<model> | ||
<spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> | ||
<spatial:listOfCoordinateComponents> | ||
<spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> | ||
<spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> | ||
<spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> | ||
</spatial:coordinateComponent> | ||
<spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> | ||
<spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> | ||
<spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> | ||
</spatial:coordinateComponent> | ||
<spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ" spatial:unit="dimensionless"> | ||
<spatial:boundaryMin spatial:id="boundary_5" spatial:value="0"/> | ||
<spatial:boundaryMax spatial:id="boundary_6" spatial:value="1"/> | ||
</spatial:coordinateComponent> | ||
</spatial:listOfCoordinateComponents> | ||
<spatial:listOfDomainTypes> | ||
<spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="3"/> | ||
</spatial:listOfDomainTypes> | ||
<spatial:listOfDomains> | ||
<spatial:domain spatial:domainType="domainType_1" spatial:id="domain_1"> | ||
<spatial:listOfInteriorPoints> | ||
<spatial:interiorPoint spatial:coord1="0" spatial:coord2="0" spatial:coord3="0"/> | ||
</spatial:listOfInteriorPoints> | ||
</spatial:domain> | ||
</spatial:listOfDomains> | ||
|
||
|
||
|
||
<spatial:listOfGeometryDefinitions> | ||
<spatial:analyticGeometry spatial:id="geometryDefinition_1" spatial:isActive="true"> | ||
<spatial:listOfAnalyticVolumes> | ||
<spatial:analyticVolume spatial:domainType="domainType_1" spatial:functionType="layered" spatial:id="analyticVolume_1" spatial:ordinal="0"> | ||
<math xmlns="http://www.w3.org/1998/Math/MathML"/> | ||
</spatial:analyticVolume> | ||
</spatial:listOfAnalyticVolumes> | ||
</spatial:analyticGeometry> | ||
<spatial:sampledFieldGeometry spatial:id="geometryDefinition_2" spatial:isActive="true" spatial:sampledField="sampledField_1"> | ||
<spatial:listOfSampledVolumes> | ||
<spatial:sampledVolume spatial:domainType="domainType_1" spatial:id="sampledVolume_1" spatial:maxValue="0" spatial:minValue="0"/> | ||
</spatial:listOfSampledVolumes> | ||
</spatial:sampledFieldGeometry> | ||
<spatial:parametricGeometry spatial:id="geometryDefinition_3" spatial:isActive="true"> | ||
<spatial:spatialPoints spatial:arrayDataLength="0" spatial:compression="uncompressed" spatial:dataType="double" spatial:id="spatialPoints_1"/> | ||
<spatial:listOfParametricObjects> | ||
<spatial:parametricObject spatial:compression="uncompressed" spatial:dataType="uint" spatial:domainType="domainType_1" spatial:id="parametricObject_1" spatial:pointIndexLength="0" spatial:polygonType="triangle"/> | ||
</spatial:listOfParametricObjects> | ||
</spatial:parametricGeometry> | ||
|
||
|
||
|
||
|
||
|
||
</spatial:listOfGeometryDefinitions> | ||
<spatial:listOfSampledFields> | ||
<spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> | ||
</spatial:listOfSampledFields> | ||
</spatial:geometry> | ||
<listOfCompartments> | ||
<compartment constant="false" id="compartment"> | ||
<spatial:compartmentMapping spatial:domainType="domainType_1" spatial:id="compartmentMapping_1" spatial:unitSize="1"/> | ||
</compartment> | ||
</listOfCompartments> | ||
<listOfSpecies> | ||
<species boundaryCondition="false" compartment="compartment" constant="false" hasOnlySubstanceUnits="false" id="species_1" spatial:isSpatial="true"/> | ||
</listOfSpecies> | ||
<listOfParameters> | ||
<parameter id="param1" value="3" constant="false"/> | ||
<parameter constant="false" id="id_3"> | ||
<spatial:diffusionCoefficient spatial:type="isotropic" spatial:variable="param1"/> | ||
</parameter> | ||
</listOfParameters> | ||
</model> | ||
</sbml> | ||
|
Oops, something went wrong.