Skip to content

Commit

Permalink
Temporarily removing RBA support
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Sep 18, 2024
1 parent cc58564 commit 04065f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 8 additions & 3 deletions biosimulators_test_suite/test_case/published_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,15 @@ def compatible_with_specifications(self, specifications):
reqs_satisfied = False
for alg_specs in specifications['algorithms']:
format_reqs_satisfied = False
for format in alg_specs['modelFormats']:
for format_in_specs in alg_specs['modelFormats']:
# TEMPORARY RBA REMOVAL
if task_reqs.model_format == "format_2585":
raise RuntimeError("Error with Simulator Specification:\n\tDue to incompatible, "
"outdated releases of RBApy, BioSimulators can no longer "
"support RBA models (a.k.a. model_format 2585).")
if (
task_reqs.model_format == format['id']
and task_reqs.model_format_features == set(format.get('supportedFeatures', []) or [])
task_reqs.model_format == format_in_specs['id']
and task_reqs.model_format_features == set(format_in_specs.get('supportedFeatures', []) or [])
):
format_reqs_satisfied = True
break
Expand Down
3 changes: 3 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def tearDown(self):

@parameterized.parameterized.expand(EXAMPLES)
def test_example(self, name, example_filename):
### TEMPORARY RBA REMOVAL
if "rba" in example_filename:
return
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 Down

0 comments on commit 04065f7

Please sign in to comment.