def __init__(self, _project): self._path = None self.uuid4 = uuid.uuid4() self.project = _project self._name = generate_name([x.name for x in _project.users], "user") self.name = self._name self.connection = 'local' self.project += self
def __init__(self, project): self._path = None self.uuid4 = uuid.uuid4() self.name = generate_name([x.name for x in project.subjects], "subject") self.project = project self.setup = None self.project += self self._sessions = []
def __init__(self, project): """ :ivar Project project: project object reference """ self.uuid4 = uuid.uuid4() self.name = generate_name([x.name for x in project.experiments], "experiment") self._setups = [] self.project = project self.project += self
def __init__(self, project=None): """ :ivar Project project: Project to which the Task belongs to. """ self.trigger_softcodes = False self.uuid4 = uuid.uuid4() self.filepath = None self.project = project self.name = generate_name([x.name for x in project.tasks], "task") if project else None self.project += self self._commands = []
def __init__(self, experiment): """ :ivar Experiment experiment: Experiment to which the Setup belongs to """ self.uuid4 = uuid.uuid4() self.name = generate_name([x.name for x in experiment.setups], "setup") self.detached = False self.experiment = experiment self.board_task = self.create_board_task() self._sessions = [] self._subjects = [] self.board = None self.task = None self.experiment += self
def __init__(self, project): """ :ivar Project project: Project to which the Board belongs to. """ self.uuid4 = uuid.uuid4() self.name = generate_name([x.name for x in project.boards], "box") self.serial_port = None self.project = project self.net_port = 36000 + len(project.boards) self.data = None self.log_messages = [] self.project += self self.enabled_bncports = None self.enabled_wiredports = None self.enabled_behaviorports = None