4.4.2. thuner.attribute.group

Describe and retrieve attributes associated with grouped objects.

Functions

offset_from_centers(object_tracks, ...)

Calculate offset between object centers.

default([matched])

Create the default group attribute type.

x_offset()

Convenience function to build an x_offset attribute.

y_offset()

Convenience function to build a y_offset attribute.

offset()

Convenience function to build an offset attribute group.

member_ids()

Convenience function to build a member_ids attribute.

membership_attribute_group([member_objects, ...])

Create attribute options for each member object of a group, and an encompassing attribute group.

thuner.attribute.group.default(matched=True)[source]

Create the default group attribute type.

thuner.attribute.group.member_ids()[source]

Convenience function to build a member_ids attribute.

thuner.attribute.group.membership_attribute_group(member_objects=['convective', 'middle', 'anvil'], matched=True, members_matched=[True, False, False])[source]

Create attribute options for each member object of a group, and an encompassing attribute group. Note the object ordering implicit in members_matched should match the ordering of objects in the grouped objects grouping options.

thuner.attribute.group.offset()[source]

Convenience function to build an offset attribute group.

thuner.attribute.group.offset_from_centers(object_tracks, attribute_group: AttributeGroup, objects)[source]

Calculate offset between object centers.

thuner.attribute.group.x_offset()[source]

Convenience function to build an x_offset attribute.

thuner.attribute.group.y_offset()[source]

Convenience function to build a y_offset attribute.