Skip to content

Commit

Permalink
Fix feature generation KeyError bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bfhealy committed Sep 22, 2023
1 parent 308c284 commit 7b6eac9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/generate_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,9 @@ def generate_features(

except ValueError:
feature_dict.pop(_id)
if _id in keep_id_list:
keep_id_list.remove(_id)
tme_dict.pop(_id)

basicStats = Parallel(n_jobs=Ncore)(
delayed(lcstats.calc_basic_stats)(id, vals['tme'])
Expand Down

0 comments on commit 7b6eac9

Please sign in to comment.