Пример #1
0
    def end(self):
        """Nicely ends the experiment."""

        from openexp import sampler, canvas
        self.running = False
        try:
            self._log.flush()
            os.fsync(self._log)
            self._log.close()
        except:
            pass
        sampler.close_sound(self)
        canvas.close_display(self)
        self.cleanup()
Пример #2
0
	def end(self):

		"""Nicely ends the experiment."""

		from openexp import sampler, canvas
		self.running = False
		try:
			self._log.flush()
			os.fsync(self._log)
			self._log.close()
		except:
			pass
		sampler.close_sound(self)
		canvas.close_display(self)
		self.cleanup()
Пример #3
0
    def end(self):
        """Nicely ends the experiment."""

        from openexp import sampler, canvas
        self.running = False
        try:
            self._log.flush()
            os.fsync(self._log)
            self._log.close()
        except:
            pass
        sampler.close_sound(self)
        canvas.close_display(self)
        self.cleanup()
        if not gc.isenabled():
            print('experiment.end(): enabling garbage collection')
            gc.enable()
Пример #4
0
	def end(self):

		"""Nicely ends the experiment."""

		from openexp import sampler, canvas
		self.running = False
		try:
			self._log.close()
		except AttributeError:
			print('experiment.end(): missing or invalid log object')
		sampler.close_sound(self)
		canvas.close_display(self)
		self.cleanup()
		if not gc.isenabled():
			print('experiment.end(): enabling garbage collection')
			gc.enable()
		self.transmit_workspace(__finished__=True)
Пример #5
0
	def end(self):

		"""Nicely ends the experiment."""

		from openexp import sampler, canvas
		self.running = False
		try:
			self._log.flush()
			os.fsync(self._log)
			self._log.close()
		except:
			pass
		sampler.close_sound(self)
		canvas.close_display(self)
		self.cleanup()
		if not gc.isenabled():
			print('experiment.end(): enabling garbage collection')
			gc.enable()