src/estimagic/parameters/block_trees.py
def _reshape_list_to_2d(list_to_reshape, shapes):
    """Reshape list of numpy.ndarray according to list of shapes.

    Args:
        list_to_reshape (list): List containing numpy.ndarray's.
        shapes (list): List of 2-dimensional shape tuples.

    Returns:
        reshaped (list): List containing the reshaped numpy.ndarray's.

    """
    if len(list_to_reshape) != len(shapes):
        raise ValueError("Arguments must have the same number of elements.")
    reshaped = [a.reshape(shape) for a, shape in zip(list_to_reshape, shapes)]
    return reshaped
Reshape list of numpy.ndarray according to list of shapes.

    Args:
        list_to_reshape (list): List containing numpy.ndarray's.
        shapes (list): List of 2-dimensional shape tuples.

    Returns:
        reshaped (list): List containing the reshaped numpy.ndarray's.

    
Reshape list of numpy.ndarray according to list of shapes.
Reshape list of numpy . ndarray according to list of shapes .
def _reshape_list_to_2d(list_to_reshape, shapes):
    if len(list_to_reshape) != len(shapes):
        raise ValueError("Arguments must have the same number of elements.")
    reshaped = [a.reshape(shape) for a, shape in zip(list_to_reshape, shapes)]
    return reshaped
def _reshape_list_to_2d ( list_to_reshape , shapes ) : if len ( list_to_reshape ) != len ( shapes ) : raise ValueError ( "Arguments must have the same number of elements." ) reshaped = [ a . reshape ( shape ) for a , shape in zip ( list_to_reshape , shapes ) ] return reshaped
Reshape list of numpy.ndarray according to list of shapes.
Reshape list of numpy . ndarray according to list of shapes .
"""Reshape list of numpy.ndarray according to list of shapes.

    Args:
        list_to_reshape (list): List containing numpy.ndarray's.
        shapes (list): List of 2-dimensional shape tuples.

    Returns:
        reshaped (list): List containing the reshaped numpy.ndarray's.

    """
reshaped (list): List containing the reshaped numpy.ndarray's.
reshaped ( list ) : List containing the reshaped numpy . ndarray ' s .
list_to_reshape
List containing numpy.ndarray's.
List containing numpy . ndarray ' s .
shapes
List of 2-dimensional shape tuples.
List of 2 - dimensional shape tuples .