Skip to content

Commit

Permalink
chore: merging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Jul 23, 2021
2 parents 7b05cb7 + 5234dbd commit ff01b8a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 38 deletions.
2 changes: 1 addition & 1 deletion biosimulators_test_suite/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.48'
__version__ = '0.1.49'
2 changes: 0 additions & 2 deletions examples/bngl/test-bngl/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<content location="./test.sedml" format="http://identifiers.org/combine.specifications/sed-ml" master="true"/>
<content location="." format="http://identifiers.org/combine.specifications/omex"/>
<content location="metadata.rdf" format="http://identifiers.org/combine.specifications/omex-metadata" master="false"/>
<content location="metadata_1.rdf" format="http://identifiers.org/combine.specifications/omex-metadata" master="false"/>
<content location="metadata_2.rdf" format="http://identifiers.org/combine.specifications/omex-metadata" master="false"/>
<content location="expected-results.json" format="http://purl.org/NET/mediatypes/application/json" master="false"/>
<content location="reports.h5" format="http://purl.org/NET/mediatypes/application/x-hdf" master="false"/>
</omexManifest>
18 changes: 0 additions & 18 deletions examples/bngl/test-bngl/metadata_1.rdf

This file was deleted.

13 changes: 0 additions & 13 deletions examples/bngl/test-bngl/metadata_2.rdf

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<prism:keyword>metabolism</prism:keyword>

<!-- thumbnail image -->
<collex:thumbnail rdf:resource="http://omex-libary.org/Parmar-BMC-Syst-Biol-2017-iron-distribution.omex/Figure1.png"/>
<collex:thumbnail rdf:resource="http://omex-libary.org/Parmar-BMC-Syst-Biol-2017-iron-distribution.omex/Figure1.jpg"/>

<!-- long description -->
<dc:description>Iron is an essential element of most living organisms but is a dangerous substance when poorly liganded in solution. The hormone hepcidin regulates the export of iron from tissues to the plasma contributing to iron homeostasis and also restricting its availability to infectious agents. Disruption of iron regulation in mammals leads to disorders such as anemia and hemochromatosis, and contributes to the etiology of several other diseases such as cancer and neurodegenerative diseases. Here we test the hypothesis that hepcidin alone is able to regulate iron distribution in different dietary regimes in the mouse using a computational model of iron distribution calibrated with radioiron tracer data.</dc:description>
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
biosimulators_utils[containers,bngl,cellml,lems,neuroml,sbml,smoldyn] >= 0.1.95
biosimulators_utils[containers,bngl,cellml,lems,neuroml,sbml,smoldyn] >= 0.1.97
cement
docker
natsort
Expand Down
7 changes: 5 additions & 2 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from biosimulators_utils.combine.io import CombineArchiveReader
from biosimulators_utils.combine.data_model import CombineArchiveContentFormat
from biosimulators_utils.combine.validation import validate
from biosimulators_utils.omex_meta.data_model import OmexMetaSchema
from biosimulators_utils.report.data_model import ReportFormat
from biosimulators_utils.report.io import ReportReader
from biosimulators_utils.sedml.io import SedmlSimulationReader
Expand All @@ -25,7 +26,8 @@ def tearDown(self):

def test(self):
examples_dir = os.path.join(os.path.dirname(__file__), '..', 'examples')
for example_filename in glob.glob(os.path.join(examples_dir, '**', '*.omex')):
example_filenames = glob.glob(os.path.join(examples_dir, '**', '*.omex'))
for example_filename in example_filenames:
example_specs_filename = os.path.join(example_filename[0:-5], 'expected-results.json')

example_base_dir = os.path.join(os.path.dirname(example_filename))
Expand All @@ -41,7 +43,8 @@ def test(self):
archive = CombineArchiveReader().run(archive_filename, archive_dirname)

errors, _ = validate(archive, archive_dirname,
formats_to_validate=list(CombineArchiveContentFormat.__members__.values()))
formats_to_validate=list(CombineArchiveContentFormat.__members__.values()),
metadata_schema=OmexMetaSchema.biosimulations)
if errors:
msg = 'COMBINE/OMEX archive `{}` is invalid.\n {}'.format(
archive_filename,
Expand Down

0 comments on commit ff01b8a

Please sign in to comment.