def update_dtc_pop(item_of_iter_list):
    from neuronunit.optimization import data_transport_container
    dtc = data_transport_container.DataTC()
    dtc.attrs = item_of_iter_list
    dtc.scores = {}
    dtc.rheobase = None
    dtc.evaluated = False
    return dtc
Example #2
0
def update_dtc_grid(item_of_iter_list):

    dtc = data_transport_container.DataTC()
    dtc.attrs = deepcopy(item_of_iter_list)
    dtc.scores = {}
    dtc.rheobase = None
    dtc.evaluated = False
    dtc.backend = 'NEURON'
    return dtc
Example #3
0
def update_dtc_grid(item_of_iter_list):
    from neuronunit.optimization import data_transport_container
    import copy
    dtc = data_transport_container.DataTC()
    from copy import deepcopy
    dtc.attrs = deepcopy(item_of_iter_list)
    dtc.scores = {}
    dtc.rheobase = None
    dtc.evaluated = False
    dtc.backend = 'NEURON'
    return dtc
Example #4
0
 def test_ap_threshold(self):
     from neuronunit.models.reduced import ReducedModel
     from neuronunit.optimization import get_neab
     from neuronunit.tests.waveform import InjectedCurrentAPThresholdTest as T
     from neuronunit.optimization.optimization_management import format_test
     from neuronunit.optimization import data_transport_container
     dtc = data_transport_container.DataTC()
     dtc.rheobase = self.rheobase
     dtc = format_test(dtc)
     self.model = ReducedModel(get_neab.LEMS_MODEL_PATH, backend=('NEURON',{'DTC':dtc}))
     #score = self.run_test(T)
     score = self.run_test(T,pred=self.rheobase)
     assert score.sort_key is not None
     self.assertTrue(score.sort_key is not None)