Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions VariantShredding.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ def construct_variant(metadata: Metadata, value: Variant, typed_value: Any) -> V
assert typed_value.keys().isdisjoint(value.keys()), "object keys must be disjoint"

# union the shredded fields and non-shredded fields
# (field IDs and offsets must be in the order of the
# corresponding field names, sorted lexicographically
# (unsigned byte ordering for UTF-8))
return VariantObject(metadata, object_fields).union(VariantObject(metadata, value))

else:
Expand Down