[Cell] return all datasets pointing to itself
This commit is contained in:
parent
0f46fa1431
commit
77c0460ca9
@ -55,6 +55,10 @@ class Cell:
|
||||
def subject(self):
|
||||
return Subject(tuple=(Subjects & {"subject_id": self.__tuple["subject_id"]}).fetch(limit=1, as_dict=True)[0])
|
||||
|
||||
@property
|
||||
def datasets(self):
|
||||
return [Dataset(tuple=d) for d in (Datasets & (CellDatasetMap & self.id)).fetch(as_dict=True)]
|
||||
|
||||
@property
|
||||
def repro_runs(self):
|
||||
repros = (Repros & "cell_id = '%s'" % self.id)
|
||||
|
Loading…
Reference in New Issue
Block a user