Skip to content

Commit 416b535

Browse files
committed
wrap in an array
1 parent 055154e commit 416b535

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

v03_pipeline/lib/misc/family_entries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def remove_family_guids(
109109
# NB: this "should" work without the extra if statement (and does in the tests)
110110
# however, experiments on dataproc showed this statement hanging with an empty
111111
# indexes array.
112-
family_entries=family_indexes_to_keep.map(lambda i: ht.family_entries[i])
112+
family_entries=hl.array(family_indexes_to_keep).map(lambda i: ht.family_entries[i])
113113
if len(family_indexes_to_keep) > 0
114114
else hl.empty_array(ht.family_entries.dtype.element_type),
115115
)

v03_pipeline/lib/misc/lookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def remove_project(
136136
ht = ht.annotate(
137137
project_stats=(
138138
# See "remove_family_guids" func for why this was necessary
139-
project_indexes_to_keep.map(lambda i: ht.project_stats[i])
139+
hl.array(project_indexes_to_keep).map(lambda i: ht.project_stats[i])
140140
if len(project_indexes_to_keep) > 0
141141
else hl.empty_array(ht.project_stats.dtype.element_type)
142142
),

0 commit comments

Comments
 (0)