File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def remove_family_guids(
109
109
# NB: this "should" work without the extra if statement (and does in the tests)
110
110
# however, experiments on dataproc showed this statement hanging with an empty
111
111
# 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 ])
113
113
if len (family_indexes_to_keep ) > 0
114
114
else hl .empty_array (ht .family_entries .dtype .element_type ),
115
115
)
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ def remove_project(
136
136
ht = ht .annotate (
137
137
project_stats = (
138
138
# 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 ])
140
140
if len (project_indexes_to_keep ) > 0
141
141
else hl .empty_array (ht .project_stats .dtype .element_type )
142
142
),
You can’t perform that action at this time.
0 commit comments