started the creation of a model interface and a dataparser for models

This commit is contained in:
a.ott
2019-12-20 14:43:02 +01:00
parent c7bcefedbe
commit 2b4380835e
4 changed files with 31 additions and 4 deletions

9
models/AbstractModel.py Normal file
View File

@@ -0,0 +1,9 @@
class AbstractModel:
# TODO what information about the model does the ModelParser need to be able to simulate the right kind of data
# for further analysis in cell_data/fi_curve etc.
def min_stimulus_strength_to_spike(self):
raise NotImplementedError("NOT IMPLEMENTED")

View File

@@ -1,9 +1,10 @@
from stimuli.AbstractStimulus import AbstractStimulus
from models.AbstractModel import AbstractModel
import numpy as np
class LIFACModel:
class LIFACModel(AbstractModel):
# all times in milliseconds
KEYS = ["mem_res", "mem_tau", "v_base", "v_zero", "threshold", "step_size", "delta_a", "tau_a"]
VALUES = [100 * 1000000, 0.1 * 200, 0, 0, 10, 0.01, 1, 200]