src/orion/core/worker/producer.py
def _sample_guard(self, start):
        """Check that the time taken sampling is less than max_idle_time"""
        if time.time() - start > self.max_idle_time:
            raise SampleTimeout(
                "Algorithm could not sample new points in less than {} seconds."
                "Failed to sample points {} times".format(
                    self.max_idle_time, self.failure_count
                )
            )
Check that the time taken sampling is less than max_idle_time
Check that the time taken sampling is less than max_idle_time
Check that the time taken sampling is less than max_idle_time
def _sample_guard(self, start):
        if time.time() - start > self.max_idle_time:
            raise SampleTimeout(
                "Algorithm could not sample new points in less than {} seconds."
                "Failed to sample points {} times".format(
                    self.max_idle_time, self.failure_count
                )
            )
def _sample_guard ( self , start ) : if time . time ( ) - start > self . max_idle_time : raise SampleTimeout ( "Algorithm could not sample new points in less than {} seconds." "Failed to sample points {} times" . format ( self . max_idle_time , self . failure_count ) )
Check that the time taken sampling is less than max_idle_time
Check that the time taken sampling is less than max_idle_time
"""Check that the time taken sampling is less than max_idle_time"""
self
start