def __init__(self, region_number_to_name_bidict=None, name=None, metadata=None): self.region_number_to_name_bidict = region_number_to_name_bidict self._name = name or ObjectLabeller.getNextUnamedObjectName(MorphologyBase) CheckValidName(self._name) self.metadata = metadata if metadata else {}
def __init__(self, simulationresult, filename=None, keyTraceSets = [], make_graphs=True ): if not filename: filename = ObjectLabeller.getNextUnamedObjectName(SimulationSummariser, prefix='SimulationSummary') + '.pdf' self.simulationresult = simulationresult self.simulation = simulationresult.simulation self.make_graphs= make_graphs self.elements = defaultdict(list) self.keyTraceSets = keyTraceSets self.reportlabconfig = ReportLabConfig() # Do the Summarising: self.summarise(filename)
def __init__(self, morphology, simulation, name= None, segmenter=None, initial_voltage=None, cell_tags = [], **kwargs): from morphforge.simulation.core.segmentation.cellsegmenter import DefaultCellSegementer self.simulation = simulation self.name = name if name else ObjectLabeller.getNextUnamedObjectName(Cell, 'AnonCell_') self.morphology = morphology self.cellSegmenter = segmenter if segmenter else DefaultCellSegementer() self.cellSegmenter.connectToCell(self) self.biophysics = CellBiophysics() self.initial_voltage = initial_voltage or unit("-51:mV") self.cell_tags = cell_tags if self.name: self.cell_tags = self.cell_tags + [self.name]
def __init__(self, name=None, description=None, user_tags=None, **kwargs): self.name = name if name else ObjectLabeller.getNextUnamedObjectName(objType=Recordable, prefix="AnonRec") self.user_tags = user_tags if user_tags else [] self._description = description