def get_neuron_params(neuron_handle, neuron_class):
    """Gets neuron parameters from the hdf5 description handle.

    Parameters
    ----------
    neuron_handle : hdf5 handle
        handle to hdf5 object that describes the neuron.
    neuron_class : slayer.neuron.*
        neuron class type

    Returns
    -------
    dict
        dictionary of neuron parameters.

    """
    neuron_params_dict = {}
    for key in neuron_handle.keys():
        neuron_params_dict[key] = neuron_handle[key][()]

    return neuron_class.neuron_params(neuron_params_dict)