fast_food_reader

cosmo_utils.utils.file_readers.fast_food_reader(key, nitems, filename)[source] [edit on github]

Reads in fastfood-type file and converts it to an array

Parameters:

key : {‘int’, ‘float’, ‘double’, ‘long’}, str

Type of the element to extract.

nitmes : int

Number of items to expect and exctract.

filename : str

Absolute path to the file, from which to extract the information.

Returns:

items_arr : np.ndarray, shape (nitems,)

Array of elements from filename with length nitems.