Skip to content

Commit

Permalink
fix ads filtering for val_ood_cat&both
Browse files Browse the repository at this point in the history
  • Loading branch information
vict0rsch committed Jan 16, 2024
1 parent 4bb9aac commit 1494d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocpmodels/datasets/lmdb_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def filter_per_adsorbates(self):
return

# val_ood_ads and val_ood_both don't have targeted adsorbates
if self.config["src"].split("/")[-2] in {"val_ood_ads", "val_ood_both"}:
if Path(self.config["src"]).parts[-1] in {"val_ood_ads", "val_ood_both"}:
return

# make set of adsorbates from a list or a string. If a string, split on comma.
Expand Down

0 comments on commit 1494d91

Please sign in to comment.