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