listutil

Utility methods for list objects.

AUTHORS: - Thomas McTavish

exception neuronpy.util.listutil.ListEmptyError(list_name=None)[source]

Alert when a list is empty

neuronpy.util.listutil.flatten_from_2d(list_of_lists)[source]

Returns a 1d, flattened version of a 2d array or list of lists. This also removes any empty elements.

neuronpy.util.listutil.nonempty_copy(list)[source]

Makes a copy of the list and then removes any empty elements.

neuronpy.util.listutil.remove_empties(list)[source]

Removes any empty elements from the list.

Previous topic

hocvar

Next topic

paraminit

This Page