Skip to content

Add clearer example of adding objects to a group in tutorial #690

@donno

Description

@donno

From the tutorial / user guide of geoh5py it is not obvious or clear how to place an object in a group.

I initially tried group.add_children(grid) however that didn't work. After a little bit of digging through the code I discovered the create() function (really this is Workspace.create_entity()) takes a parent parameter which is the group to add the entity to.

The drillhole example does show this but I had overlooked it as I wasn't interested in drillholes.

It would also be good to cover how to move an object between groups if that is possible through Python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions