-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from yaml2sbml-dev/feature_tests
- Loading branch information
Showing
13 changed files
with
220 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include yaml2sbml/yaml_schema.yaml |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
python3 -m flake8 \ | ||
--exclude=build,doc,examples,source \ | ||
--per-file-ignores='*/__init__.py:F401 test/*:T001,S101' |
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 |
---|---|---|
|
@@ -13,13 +13,20 @@ | |
version="0.1.1", | ||
author="Jakob Vanhoefer, Marta R. A. Matos", | ||
author_email="[email protected]", | ||
description="A small package to convert ODEs specified in a yaml file to SBML/PEtab.", | ||
description="A small package to convert ODEs specified in " | ||
"a yaml file to SBML/PEtab.", | ||
url="https://github.com/martamatos/yaml2sbml", | ||
packages=setuptools.find_packages(), | ||
install_requires=["python-libsbml>=5.18.0", | ||
"PyYAML>=5.1", | ||
"pandas>=1.0.1", | ||
"petab>=0.1.4"], | ||
tests_require=["amici>=0.11.10", | ||
"pypesto>=0.2.2" | ||
"numpy>=1.19.4", | ||
"matplotlib>=3.1.0", | ||
"flake8>=3.7.2", | ||
"nbmake>=0.1.0", ], | ||
extras_require={'examples': ["amici>=0.11.10", | ||
"numpy>=1.19.4", | ||
"matplotlib>=3.1.0"]}, | ||
|
@@ -29,5 +36,6 @@ | |
"License :: OSI Approved :: MIT License", | ||
"Operating System :: Unix", | ||
], | ||
entry_points=ENTRY_POINTS | ||
entry_points=ENTRY_POINTS, | ||
include_package_data=True | ||
) |
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,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir test_output | ||
|
||
# test yaml2sbml | ||
yaml2sbml ./test_yaml2sbml/ode_input1.yaml test_output/test_sbml.xml | ||
|
||
# test yaml2petab for both versions of the petab yaml flag | ||
yaml2petab ./test_yaml2sbml/ode_input2.yaml test_output petab_test_sbml.xml -y test_yaml.yml | ||
yaml2petab ./test_yaml2sbml/ode_input2.yaml test_output petab_test_sbml.xml --petab_yaml test_yaml.yml | ||
|
||
# test validator | ||
yaml2sbml_validate ./test_yaml2sbml/ode_input1.yaml | ||
|
||
rm -r test_output | ||
|
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
Oops, something went wrong.