Skip to content

Commit

Permalink
Use strtobool
Browse files Browse the repository at this point in the history
  • Loading branch information
ffelten committed Feb 15, 2024
1 parent 815425c commit d21f19d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion morl_baselines/common/morl_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import time
from abc import ABC, abstractmethod
from distutils.util import strtobool
from typing import Dict, Optional, Union

import gymnasium as gym
Expand Down Expand Up @@ -261,7 +262,7 @@ def setup_wandb(
config = self.get_config()
config["algo"] = self.experiment_name
# looks for whether we're using a Gymnasium based env in env_variable
monitor_gym = os.environ.get("MONITOR_GYM", True)
monitor_gym = strtobool(os.environ.get("MONITOR_GYM", "True"))

wandb.init(
project=project_name,
Expand Down

0 comments on commit d21f19d

Please sign in to comment.