Example #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)
Example #2
0
	def end(self):
	
		"""End the experiment"""
		
		try:
			self.log.close()		
		except:
			pass
			
		sampler.close_sound(self)
		canvas.close_display(self)
Example #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)
Example #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)
Example #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()
Example #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()