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 any macpie.Dataset objects that do not contain the given tag.

from_excel_dict(excel_file, excel_dict)

get_dataset_history_info()

Contruct and return an macpie.DictLikeTablibDataset object containing all macpie.Dataset.history information.

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_tag with new_tag.

reverse()

S.reverse() -- reverse IN PLACE

sort(*args, **kwds)

to_excel(excel_writer[, write_excel_dict])

Write BasicList to an Excel file by calling macpie.Dataset.to_excel() on each macpie.Dataset in this list.

to_excel_dict()

Convert the BasicList to a dictionary.

Attributes

all_fields

A list of all macpie.Dataset.all_fields contained in this AnchoredList.

dsets

The list of Datasets.

key_fields

A list of all macpie.Dataset.key_fields contained in this BasicList.

sys_fields

A list of all macpie.Dataset.sys_fields contained in this AnchoredList.