pyfan.amto.lsdc.lsdcconvert.ff_ls2dc

pyfan.amto.lsdc.lsdcconvert.ff_ls2dc(ls_list, st_counter_str='i', st_all_str='o', st_ls_name=None, verbose=False)[source]

Convert list to dict with list name and index and dict keys

Parameters
ls_listlist

A list of values.

st_counter_strstr

String prefix for list counter in dictionary name.

st_all_strstr

String prefix in front of total ele length in dict key name.

Returns
dict

A dictionary of equal length to ls_list input, list converted to dict.

Examples using pyfan.amto.lsdc.lsdcconvert.ff_ls2dc