cosmicfish_pylib.utilities.make_list

cosmicfish_pylib.utilities.make_list(elements)[source]

Checks if elements is a list. If yes returns elements without modifying it. If not creates and return a list with elements inside.

Parameters:elements – an element or a list of elements
Returns:a list containing elements if elements is not a list, elements otherwise.
Return type:list