Skip to content

Commit

Permalink
support logger entity (#717)
Browse files Browse the repository at this point in the history
* support entity

* backwards support
  • Loading branch information
mshuaibii authored May 31, 2024
1 parent b21a950 commit aa0f598
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/fairchem/core/common/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +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=entity,
resume="allow",
)

Expand Down

0 comments on commit aa0f598

Please sign in to comment.