Skip to content

Commit

Permalink
logic typo in load_datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
zulissimeta committed Jul 12, 2024
1 parent 30c24b7 commit c840e47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fairchem/core/trainers/base_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ def load_datasets(self) -> None:

# Default all of the dataset portions to {} if
# they don't exist, or are null
if self.config.get("dataset", None):
if not self.config.get("dataset", None):
self.config["dataset"] = {}
if self.config.get("val_dataset", None):
if not self.config.get("val_dataset", None):
self.config["val_dataset"] = {}
if self.config.get("test_dataset", None):
if not self.config.get("test_dataset", None):
self.config["test_dataset"] = {}
if self.config.get("relax_dataset", None):
if not self.config.get("relax_dataset", None):
self.config["relax_dataset"] = {}

# load train, val, test datasets
Expand Down

0 comments on commit c840e47

Please sign in to comment.