hoops_ai.storage.datasetstorage.schema_builder.Group
- class hoops_ai.storage.datasetstorage.schema_builder.Group(name, primary_dimension, description=None, special_processing=None)
Bases:
objectRepresents a group in a schema with arrays.
- Parameters:
- create_array(name, dimensions, dtype='float32', description=None, **validation_rules)
Create an array in this group.
- Parameters:
- Return type:
None
Example:
group.create_array('face_areas', ['face'], 'float32', 'Surface area of each face') group.create_array('face_normals', ['face', 'coordinate'], 'float32', 'Normal vectors')
- get_array(name)
Get array specification by name.
- remove_array(name)
Remove an array from this group.