Skip to content

Commit

Permalink
update test suite 00001 table and draft for 01186 table
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaprins committed Nov 4, 2024
1 parent 6890443 commit cce679c
Show file tree
Hide file tree
Showing 34 changed files with 3,382 additions and 29 deletions.
Binary file modified test_suite/test_00001/tests/d1_plots_local/amici_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/bionetgen_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/boolnet_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/cbmpy_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/cobrapy_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/copasi_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/gillespy2_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/ginsim_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/libsbmlsim_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/masspy_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/pysces_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/rbapy_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_local/tellurium_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/amici_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/bionetgen_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/boolnet_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/cbmpy_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/cobrapy_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/copasi_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/gillespy2_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/ginsim_plot_1.pdf
Binary file not shown.
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/masspy_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/pysces_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/rbapy_plot_1.pdf
Binary file not shown.
Binary file modified test_suite/test_00001/tests/d1_plots_remote/tellurium_plot_1.pdf
Binary file not shown.
46 changes: 23 additions & 23 deletions test_suite/test_00001/tests/results_compatibility_biosimulators.md

Large diffs are not rendered by default.

1,277 changes: 1,277 additions & 0 deletions test_suite/test_00001/tests/results_local.json

Large diffs are not rendered by default.

1,326 changes: 1,326 additions & 0 deletions test_suite/test_00001/tests/results_remote.json

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions test_suite/test_01186/tests/results_compatibility_biosimulators.md

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions test_suite/test_01186/tests/results_local.json

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions test_suite/test_01186/tests/results_remote.json

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions test_suite/test_test_suite_compatibility_biosimulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def parse_arguments():

parser.add_argument(
"--cases",
action="store",
type=list,
action="extend",
nargs="+",
type=str,
default=[],
help="Limit to the cases listed in the file. Empty list means no limit",
)
Expand Down Expand Up @@ -106,7 +107,7 @@ def process_cases(args):
print(f"Processing {len(subfolders)} subfolders in {args.suite_path}")
test_folder = 'tests'

for subfolder in subfolders:
for subfolder in args.cases:
# create an equivalently named folder in the starting directory
os.chdir(args.suite_path)
print(f"Processing {subfolder}")
Expand Down Expand Up @@ -139,17 +140,18 @@ def process_cases(args):
os.chdir(new_directory)
print(f"Changed to {new_directory}")

engines_list = list(engines.keys())
engine_list = list(engines.keys())

utils.run_biosimulators_remotely_and_locally(os.path.basename(sedml_file_path),
utils.run_biosimulators_remotely_and_locally(engine_list,
os.path.basename(sedml_file_path),
os.path.basename(sbml_file_path),
os.path.join(test_folder,'d1_plots_remote'),
os.path.join(test_folder,'d1_plots_local'),
test_folder=test_folder)


if __name__ == "__main__":
args = parse_arguments()
args = parse_arguments()

process_cases(args)

10 changes: 10 additions & 0 deletions utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from pyneuroml import biosimulations
import pandas as pd
from requests.exceptions import HTTPError
import json

ENGINES = {
'amici': {
Expand Down Expand Up @@ -1233,6 +1234,15 @@ def create_combined_results_table(results_remote,

suffix_remote = ' (R)'
suffix_local = ' (L)'

# save results_remote and results_local as json files with dicts
path_to_results_remote = os.path.join(test_folder, 'results_remote.json')
path_to_results_local = os.path.join(test_folder, 'results_local.json')

with open(path_to_results_remote, 'w') as f:
json.dump(results_remote, f, indent=4)
with open(path_to_results_local, 'w') as f:
json.dump(results_local, f, indent=4)

# Create results tables for remote and local results
results_table_remote = create_results_table(results_remote, sbml_file_name, sedml_file_name, d1_plots_remote_dir)
Expand Down

0 comments on commit cce679c

Please sign in to comment.