Skip to content

Commit

Permalink
Merge pull request #60 from nlesc-nano/dev
Browse files Browse the repository at this point in the history
Reset the molecular index when computing the druglikeness
  • Loading branch information
felipeZ committed Mar 9, 2021
2 parents 0f2c157 + e6f13de commit 881da16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flamingo/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def apply_filters(molecules: pd.DataFrame, opts: Options, output_file: Path) ->

for key, val in opts.filters.items():
if key in available_filters and val is not None:
molecules.reset_index(drop=True, inplace=True) # throw away all indices
molecules = available_filters[key](molecules, opts)
if molecules.empty:
print("There no more molecules to perform the filter in the batch!")
Expand Down

0 comments on commit 881da16

Please sign in to comment.