Exemple #1
0
    def setup(self):
        """Set up class"""
        sys.path.insert(0, L5PC_PATH)

        import l5pc_template  # NOQA

        self.l5pc_cell = l5pc_template.create()
        nt.assert_is_instance(self.l5pc_cell,
                              bluepyopt.electrical.celltemplate.CellTemplate)
Exemple #2
0
    def setup(self):
        """Set up class"""
        sys.path.insert(0, L5PC_PATH)

        import l5pc_template  # NOQA

        self.l5pc_cell = l5pc_template.create()
        nt.assert_is_instance(
            self.l5pc_cell,
            bluepyopt.electrical.celltemplate.CellTemplate)
Exemple #3
0
def create():
    """Setup"""

    l5pc_cell = l5pc_template.create()

    fitness_protocols = define_protocols()
    fitness_calculator = define_fitness_calculator(fitness_protocols)

    param_names = [
        param.name for param in l5pc_cell.params.values() if not param.frozen
    ]

    return ce.CellEvaluator(cell_template=l5pc_cell,
                            param_names=param_names,
                            fitness_protocols=fitness_protocols,
                            fitness_calculator=fitness_calculator)
def create():
    """Setup"""

    l5pc_cell = l5pc_template.create()

    fitness_protocols = define_protocols()
    fitness_calculator = define_fitness_calculator(fitness_protocols)

    param_names = [param.name
                   for param in l5pc_cell.params.values()
                   if not param.frozen]

    return ce.CellEvaluator(
        cell_template=l5pc_cell,
        param_names=param_names,
        fitness_protocols=fitness_protocols,
        fitness_calculator=fitness_calculator)