class WrightTools.collection.Collection(file=None, parent=None, name=None, **kwargs)[source]

Bases: WrightTools._group.Group

Nestable Collection of Data objects.

__init__(file=None, parent=None, name=None, **kwargs)

Create a new Group object by binding to a low-level GroupID.


close() Close the file that contains the Group.
copy([parent, name, verbose]) Create a copy under parent.
create_collection([name, position]) Create a new child colleciton.
create_data([name, position]) Create a new child data.
flush() Ensure contents are written to file.
print_tree([depth, verbose]) Print a ascii-formatted tree representation of the collection contents.
save([filepath, overwrite, verbose]) Save as root of a new file.


attrs Attributes attached to this object
file Return a File instance associated with this object
fullpath file and internal structure.
item_names Item names.
name Return the full name of this object.
natural_name Natural name.
parent Parent.