macpie.BasicList#
- class macpie.BasicList(initlist=None)#
A basic list of Datasets.
- __init__(initlist=None)#
Methods
__init__([initlist])append(item)S.append(value) -- append value to the end of the sequence
clear()copy()count(value)excel_dict_dsets(excel_dict)excel_dict_filter_tags(excel_dict, tags)excel_dict_filterfalse_tags(excel_dict, tags)extend(other)S.extend(iterable) -- extend sequence by appending elements from the iterable
filter(tag)Returns a new instance of
BasicList, excluding anymacpie.Datasetobjects that do not contain the giventag.from_excel_dict(excel_file, excel_dict)get_dataset_history_info()Contruct and return an
macpie.DictLikeTablibDatasetobject containing allmacpie.Dataset.historyinformation.index(value, [start, [stop]])Raises ValueError if the value is not present.
insert(i, item)S.insert(index, value) -- insert value before index
keep_fields(selected_fields[, ...])Keep specified fields (and drop the rest).
pop([index])Raise IndexError if list is empty or index is out of range.
remove(item)S.remove(value) -- remove first occurrence of value.
replace_tag(old_tag, new_tag)Iterate over Datasets in this list and replace
old_tagwithnew_tag.reverse()S.reverse() -- reverse IN PLACE
sort(*args, **kwds)to_excel(excel_writer[, write_excel_dict])Write
BasicListto an Excel file by callingmacpie.Dataset.to_excel()on eachmacpie.Datasetin this list.to_excel_dict()Convert the
BasicListto a dictionary.Attributes
all_fieldsA list of all
macpie.Dataset.all_fieldscontained in thisAnchoredList.dsetsThe list of Datasets.
key_fieldsA list of all
macpie.Dataset.key_fieldscontained in thisBasicList.sys_fieldsA list of all
macpie.Dataset.sys_fieldscontained in thisAnchoredList.