File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ def remove_family_guids(
105
105
))
106
106
ht = ht .annotate (
107
107
# NB: this "should" work without the extra if statement (and does in the tests)
108
- # however, experiments on dataproc showed this statement hanging with an empty
108
+ # however, experiments on dataproc showed this statement hanging with an empty
109
109
# indexes array.
110
110
family_entries = family_indexes_to_keep .map (lambda i : ht .family_entries [i ])
111
111
if len (family_indexes_to_keep ) > 0
112
- else hl .empty_array (ht .family_entries .dtype .element_type )
112
+ else hl .empty_array (ht .family_entries .dtype .element_type ),
113
113
)
114
114
return ht .annotate_globals (
115
115
family_guids = ht .family_guids .filter (
Original file line number Diff line number Diff line change @@ -131,12 +131,12 @@ def remove_project(
131
131
project_indexes_to_keep = hl .eval (
132
132
hl .enumerate (existing_project_guids )
133
133
.filter (lambda item : item [1 ] != project_guid )
134
- .map (lambda item : item [0 ])
134
+ .map (lambda item : item [0 ]),
135
135
)
136
136
ht = ht .annotate (
137
137
project_stats = (
138
138
# See "remove_family_guids" func for why this was necessary
139
- project_stats = project_indexes_to_keep .map (lambda i : ht .project_stats [i ])
139
+ 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