Skip to content

Commit

Permalink
backwards support
Browse files Browse the repository at this point in the history
  • Loading branch information
mshuaibii committed May 28, 2024
1 parent d12b514 commit 73488f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/fairchem/core/common/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,19 @@ def __init__(self, config) -> None:
if isinstance(self.config["logger"], dict)
else None
)
entity = (
self.config["logger"].get("entity", None)
if isinstance(self.config["logger"], dict)
else None
)

wandb.init(
config=self.config,
id=self.config["cmd"]["timestamp_id"],
name=self.config["cmd"]["identifier"],
dir=self.config["cmd"]["logs_dir"],
project=project,
entity=self.config["logger"].get("entity", None),
entity=entity,
resume="allow",
)

Expand Down

0 comments on commit 73488f9

Please sign in to comment.