forked from jgrewe/fishbook
[fishbook] additional functions for Stimulus class
This commit is contained in:
parent
d21c75cc7f
commit
c03f84c2ee
@ -307,6 +307,51 @@ class Stimulus:
|
|||||||
_safe_get_val(self.__tuple, "duration", 0.0))
|
_safe_get_val(self.__tuple, "duration", 0.0))
|
||||||
return str
|
return str
|
||||||
|
|
||||||
|
@property
|
||||||
|
def id(self):
|
||||||
|
return self.__tuple["stimulus_id"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def name(self):
|
||||||
|
return self.__tuple["stimulus_name"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def cell(self):
|
||||||
|
return Cells & "cell_id = %s" % self.__tuple["cell_id"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def repro(self):
|
||||||
|
return Repros & "repro_id = %s" % self.__tuple["repro_id"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def start_time(self):
|
||||||
|
return self.__tuple["start_time"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def start_index(self):
|
||||||
|
return self.__tuple["start_index"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def duration(self):
|
||||||
|
return self.__tuple["duration"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def multi_tag_id(self):
|
||||||
|
return self.__tuple["mtag_id"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def settings(self):
|
||||||
|
return self.__tuple["settings"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def run(self):
|
||||||
|
return self.__tuple["run"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def index(self):
|
||||||
|
return self.__tuple["stimulus_index"]
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def settings(self):
|
def settings(self):
|
||||||
return _safe_get_val(self.__tuple, "settings", "")
|
return _safe_get_val(self.__tuple, "settings", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user