-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into experimental
- Loading branch information
Showing
39 changed files
with
3,005 additions
and
249 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
#!/usr/bin/env python | ||
"""Test health status of the BioSimulators API.""" | ||
|
||
import requests | ||
import sys | ||
|
||
biosimulations_api_url = "https://api.biosimulations.org/health" | ||
|
||
r = requests.get(biosimulations_api_url) | ||
r_status = r.json()["status"] | ||
|
||
if r_status == "ok": | ||
exit_status = 0 | ||
else: | ||
exit_status = 1 | ||
|
||
sys.exit(exit_status) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import sys | ||
import os | ||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))) # to import utils | ||
import utils | ||
import argparse | ||
import json | ||
|
||
engines = utils.ENGINES | ||
|
||
# Save the current working directory | ||
cwd = os.getcwd() | ||
print('Current working directory:', cwd) | ||
|
||
# SBML folder is one folder up relative to cwd | ||
path_to_sbml_folder = os.path.abspath(os.path.join(cwd, os.pardir)) | ||
print('Path to SBML folder:', path_to_sbml_folder) | ||
|
||
# change the working directory to the SBML folder (because here the SBML and SED-ML files are located) | ||
os.chdir(path_to_sbml_folder) | ||
print('Changed working directory to:', os.getcwd()) | ||
|
||
sbml_file_name = 'LEMS_NML2_Ex9_FN.sbml' | ||
sedml_file_name = 'LEMS_NML2_Ex9_FN_missing_xmlns.sedml' #xmlns:sbml missing | ||
|
||
# output_dir is set to 'd1_plots' by default but can be changed using the --output-dir argument (required to deal with GitHub Actions permission issues) | ||
parser = argparse.ArgumentParser(description='Test compatibility of different biosimulation engines') | ||
parser.add_argument('--output-dir',action='store',default='d1_plots',help='prefix of the output directory where the d1 plots will be saved') | ||
args = parser.parse_args() | ||
|
||
test_folder = 'tests' | ||
|
||
d1_plots_local_dir = os.path.join(test_folder, args.output_dir + '_local') | ||
d1_plots_remote_dir = os.path.join(test_folder, args.output_dir + '_remote') | ||
|
||
results_paths = { | ||
"local": os.path.join(path_to_sbml_folder, 'tests', 'results_local.json'), | ||
"remote": os.path.join(path_to_sbml_folder, 'tests', 'results_remote.json') | ||
} | ||
|
||
results = {} | ||
for key, path in results_paths.items(): | ||
with open(path, 'r') as f: | ||
results[key] = json.load(f) | ||
|
||
results_table = utils.create_combined_results_table(results["remote"], | ||
results["local"], | ||
sedml_file_name, | ||
sbml_file_name, | ||
d1_plots_local_dir, | ||
d1_plots_remote_dir, | ||
test_folder='tests') | ||
|
||
print(results_table) | ||
|
Submodule COPASI
added at
4dfa02
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.