Skip to content

Commit

Permalink
minor update for play and load function
Browse files Browse the repository at this point in the history
  • Loading branch information
P-Schumacher committed Aug 14, 2024
1 parent 84c3579 commit ef8ff9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions deprl/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def play(
config, checkpoint_path, _ = load_checkpoint(checkpoint_path, checkpoint)

# Get important info from config
assert config is not None
header = header or config["tonic"]["header"]
agent = agent or config["tonic"]["agent"]
environment = environment or config["tonic"]["test_environment"]
Expand Down
1 change: 1 addition & 0 deletions deprl/utils/load_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def load_checkpoint(checkpoint_path, checkpoint="last"):
Checkpoint loading for main() function.
"""
if not os.path.isdir(checkpoint_path):
logger.log(f"Checkpoint path is not valid: {checkpoint_path}")
return None, None, None

path = (
Expand Down

0 comments on commit ef8ff9b

Please sign in to comment.