Exemplo n.º 1
0
    def end(self):
        """End the experiment"""

        try:
            self._log.flush()
            os.fsync(self._log)
            self._log.close()
        except:
            pass
        sampler.close_sound(self)
        canvas.close_display(self)
Exemplo n.º 2
0
	def end(self):
	
		"""End the experiment"""
		
		try:
			self.log.close()		
		except:
			pass
			
		sampler.close_sound(self)
		canvas.close_display(self)
Exemplo n.º 3
0
	def end(self):

		"""End the experiment"""

		try:
			self._log.flush()
			os.fsync(self._log)
			self._log.close()
		except:
			pass
		sampler.close_sound(self)
		canvas.close_display(self)
Exemplo n.º 4
0
    def end(self):

        """Gracefully end the experiment"""

        from openexp import sampler, canvas

        try:
            self._log.flush()
            os.fsync(self._log)
            self._log.close()
        except:
            pass
        sampler.close_sound(self)
        canvas.close_display(self)
Exemplo n.º 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()
        self.restore_state()
Exemplo n.º 6
0
	def end(self):

		"""Nicely end 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()