Skip to content

Commit fe5e913

Browse files
authored
Merge pull request #722 from broadinstitute/benb/bugfix_for_project_table_updates
bugfix for project table updates
2 parents b388c11 + 17a3068 commit fe5e913

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

v03_pipeline/lib/misc/family_entries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def remove_new_callset_family_guids(
107107
family_entries=(
108108
hl.array(family_indexes_to_keep).map(lambda i: ht.family_entries[i])
109109
if len(family_indexes_to_keep) > 0
110-
else hl.missing(ht.family_entries.dtype.element_type)
110+
else hl.missing(ht.family_entries.dtype)
111111
),
112112
)
113113
return ht.annotate_globals(

v03_pipeline/lib/tasks/update_project_table.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ def update_table(self, ht: hl.Table) -> hl.Table:
100100
# This was the least gross way
101101
if 'family_entries' not in ht.row_value:
102102
ht = ht.annotate(
103-
family_entries=hl.empty_array(
104-
hl.tarray(callset_ht.family_entries.dtype.element_type),
105-
),
103+
family_entries=hl.missing(callset_ht.family_entries.dtype),
106104
)
107105
ht = remove_new_callset_family_guids(
108106
ht,

0 commit comments

Comments
 (0)