(self)
Generate a view.html via an asynchronous call to `self.view.generate()`
Generate a view.html via an asynchronous call to `self.view.generate()`
Generate a view . html via an asynchronous call to self . view . generate ()
def generate_view(self):
        """ Generate a view.html via an asynchronous call to `self.view.generate()`
        """
        if self.view is not None:
            if hasattr(self.view, 'current_thread') and self.view.current_thread.is_alive():
                Logger()('Skipping view generation: another view is already being generated', log_level=Logger.WARNING)
                Logger()('Consider removing batch entries from views.items in order to speed it up', log_level=Logger.WARNING)
            else:
                # TODO: Redesign this threading system so it wont slow down training
                # Python threads don't really exist, because of the interpreter lock
                # we might need multi-proessing or some other way.
                self.view.current_thread = threading.Thread(target=self.view.generate)
                self.view.current_thread.start()
def generate_view ( self ) : if self . view is not None : if hasattr ( self . view , 'current_thread' ) and self . view . current_thread . is_alive ( ) : Logger ( ) ( 'Skipping view generation: another view is already being generated' , log_level = Logger . WARNING ) Logger ( ) ( 'Consider removing batch entries from views.items in order to speed it up' , log_level = Logger . WARNING ) else : # TODO: Redesign this threading system so it wont slow down training # Python threads don't really exist, because of the interpreter lock # we might need multi-proessing or some other way. self . view . current_thread = threading . Thread ( target = self . view . generate ) self . view . current_thread . start ( )