Skip to content

Commit

Permalink
Comment out test_run_models.py until tvbo is public and can be access…
Browse files Browse the repository at this point in the history
…ed by GithubActions
  • Loading branch information
romina1601 committed Sep 12, 2024
1 parent 21ed224 commit d7c79fa
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions tvb_ext_ontology/tests/test_run_models.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import unittest
from tvbo.api import ontology_api
from tvbo.knowledge.ontology import get_models


class TestOntologyAPI(unittest.TestCase):

def test_simulation_experiment(self):
models = get_models().keys() # Fetch actual models
api = ontology_api.OntologyAPI() # Initialize real API

for m in models:
metadata = {
"model": {"label": m, "parameters": {}},
"connectivity": {
"parcellation": {"atlas": {"name": "Destrieux"}},
"tractogram": {"label": "PPMI85"},
},
"coupling": {"label": "Linear"},
"integration": {"method": "Heun", "noise": None},
}
# Configure and run the simulation experiment
api.configure_simulation_experiment(metadata)
api.experiment.run(simulation_length=10)


if __name__ == "__main__":
unittest.main()
# import unittest
# from tvbo.api import ontology_api
# from tvbo.knowledge.ontology import get_models
#
#
# class TestOntologyAPI(unittest.TestCase):
#
# def test_simulation_experiment(self):
# models = get_models().keys() # Fetch actual models
# api = ontology_api.OntologyAPI() # Initialize real API
#
# for m in models:
# metadata = {
# "model": {"label": m, "parameters": {}},
# "connectivity": {
# "parcellation": {"atlas": {"name": "Destrieux"}},
# "tractogram": {"label": "PPMI85"},
# },
# "coupling": {"label": "Linear"},
# "integration": {"method": "Heun", "noise": None},
# }
# # Configure and run the simulation experiment
# api.configure_simulation_experiment(metadata)
# api.experiment.run(simulation_length=10)
#
#
# if __name__ == "__main__":
# unittest.main()

0 comments on commit d7c79fa

Please sign in to comment.