Skip to content

Commit

Permalink
Removed all TVB-NetPyNE test_models.py tests except for the 1st one
Browse files Browse the repository at this point in the history
  • Loading branch information
dionperd committed Sep 22, 2023
1 parent 0c6c78a commit 83ae49c
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions tvb_multiscale/tests/tvb_netpyne/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from tvb_multiscale.tests.core.test_spikeNet_models import TestSpikeNetModel

from examples.tvb_netpyne.example import default_example
from examples.tvb_netpyne.models.wilson_cowan import wilson_cowan_example
from examples.tvb_netpyne.models.red_wong_wang import excio_inhi_example
# from examples.tvb_netpyne.models.wilson_cowan import wilson_cowan_example
# from examples.tvb_netpyne.models.red_wong_wang import excio_inhi_example


class TestDefault(TestSpikeNetModel):
Expand All @@ -34,49 +34,49 @@ def test(self):
# self.run()


class TestWilsonCowan(TestSpikeNetModel):

def run_fun(self):
wilson_cowan_example(model=self.tvb_to_spikeNet_mode,
spiking_proxy_inds=self.spiking_proxy_inds, population_order=self.population_order,
exclusive_nodes=self.exclusive_nodes, delays_flag=self.delays_flag,
simulation_length=self.simulation_length, transient=self.transient,
plot_write=self.plot_write)


class TestWilsonCowanRATE(TestWilsonCowan):
def test(self):
self.tvb_to_spikeNet_mode = "RATE"
self.run()
# class TestWilsonCowan(TestSpikeNetModel):
#
# def run_fun(self):
# wilson_cowan_example(model=self.tvb_to_spikeNet_mode,
# spiking_proxy_inds=self.spiking_proxy_inds, population_order=self.population_order,
# exclusive_nodes=self.exclusive_nodes, delays_flag=self.delays_flag,
# simulation_length=self.simulation_length, transient=self.transient,
# plot_write=self.plot_write)
#
#
# class TestWilsonCowanRATE(TestWilsonCowan):
# def test(self):
# self.tvb_to_spikeNet_mode = "RATE"
# self.run()


# class TestWilsonCowanSPIKES(TestWilsonCowan):
# def test(self):
# self.tvb_to_spikeNet_mode = "SPIKES"
# self.run()


class TestRedWongWang(TestSpikeNetModel):
def run_fun(self):
excio_inhi_example(model=self.tvb_to_spikeNet_mode,
spiking_proxy_inds=self.spiking_proxy_inds, population_order=self.population_order,
exclusive_nodes=self.exclusive_nodes, delays_flag=self.delays_flag,
simulation_length=self.simulation_length, transient=self.transient,
plot_write=self.plot_write)


class TestRedWongWangRATE(TestRedWongWang):
def test(self):
self.tvb_to_spikeNet_mode = "RATE"
self.run()
#
#
# class TestRedWongWang(TestSpikeNetModel):
# def run_fun(self):
# excio_inhi_example(model=self.tvb_to_spikeNet_mode,
# spiking_proxy_inds=self.spiking_proxy_inds, population_order=self.population_order,
# exclusive_nodes=self.exclusive_nodes, delays_flag=self.delays_flag,
# simulation_length=self.simulation_length, transient=self.transient,
# plot_write=self.plot_write)
#
#
# class TestRedWongWangRATE(TestRedWongWang):
# def test(self):
# self.tvb_to_spikeNet_mode = "RATE"
# self.run()


models_to_test_netpyne = [
TestDefaultRATE,
# TestDefaultSPIKES, # Not implemented yet
TestWilsonCowanRATE,
# TestWilsonCowanSPIKES, # Not implemented yet
TestRedWongWangRATE
TestDefaultRATE #,
# # TestDefaultSPIKES, # Not implemented yet
# TestWilsonCowanRATE,
# # TestWilsonCowanSPIKES, # Not implemented yet
# TestRedWongWangRATE
]


Expand Down

0 comments on commit 83ae49c

Please sign in to comment.