hloopy/hloop.py
def _assert_mapping_func_valid(self, func, hloop):
        """Assert that mapping_func takes an hloop and returns a (row, col)
        sequence.
        """
        output = func(hloop)
        if not len(output) == 2:
            raise ValueError("'mapping_func' not outputting length 2 sequence")
        if not isinstance(output[0], int) and isinstance(output[1], int):
            msg = "'mapping_func' sequence output contains non ints"
            raise ValueError(msg)
Assert that mapping_func takes an hloop and returns a (row, col)
        sequence.
        
Assert that mapping_func takes an hloop and returns a (row, col)
sequence.
Assert that mapping_func takes an hloop and returns a ( row col ) sequence .
def _assert_mapping_func_valid(self, func, hloop):
        output = func(hloop)
        if not len(output) == 2:
            raise ValueError("'mapping_func' not outputting length 2 sequence")
        if not isinstance(output[0], int) and isinstance(output[1], int):
            msg = "'mapping_func' sequence output contains non ints"
            raise ValueError(msg)
def _assert_mapping_func_valid ( self , func , hloop ) : output = func ( hloop ) if not len ( output ) == 2 : raise ValueError ( "'mapping_func' not outputting length 2 sequence" ) if not isinstance ( output [ 0 ] , int ) and isinstance ( output [ 1 ] , int ) : msg = "'mapping_func' sequence output contains non ints" raise ValueError ( msg )
Assert that mapping_func takes an hloop and returns a (row, col)
sequence.
Assert that mapping_func takes an hloop and returns a ( row col ) sequence .
"""Assert that mapping_func takes an hloop and returns a (row, col)
        sequence.
        """
self
func
hloop