Beispiel #1
0
    def set_population(self, populations):
        """Assign unboxed population

        Args:
        populations (list): list of population tensors

        Note: the whole class assumes populations as a list so don't set
        unboxed results or it will break everything.
        """

        if self.debug:
            print_debug(populations)

        self._populations = populations
Beispiel #2
0
def test_print_debug_single_msg():
    io.print_debug('component', "simple")
Beispiel #3
0
def test_casting_msg():
    io.print_debug('component', [1, 2], 3)
Beispiel #4
0
def test_print_debug_multi_msg():
    io.print_debug('component', 'msg1', 'msg2')
Beispiel #5
0
 def print_debug(self, *msg):
     "output debug message"
     if self.debug:
         print_debug(self.idx, msg)
Beispiel #6
0
 def print_debug(self, msg):
     "output debug message"
     if self.debug:
         print_debug(self.name, msg)