Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
fixed a bug in modelID with r001 in plot_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LilySnow committed May 26, 2020
1 parent d7bfdde commit 87c4010
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deeprank/utils/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,16 @@ def get_HS(modelIDs, haddockS):
HS = []
idx_keep = []

# -- remove r000 from modelID
modelIDs = [re.sub("_r\d+$",'', modelID) for modelID in modelIDs ]

# -- retrieve HS
for idx, modelID in enumerate(modelIDs):
if modelID in haddockS:
HS.append(haddockS[modelID])
idx_keep.append(idx)
else:
print(f"Warning: model ID {modelID} does not have HS.")
return HS, idx_keep

def filter_models(df, label = 'Test', scenario = 'ranair'):
Expand Down

0 comments on commit 87c4010

Please sign in to comment.