Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
changed path handling to be OS agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Kemmerling committed Jun 10, 2022
1 parent de84a6b commit 6e0da3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mbrl/diagnostics/training_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import os
import sys
from argparse import ArgumentParser
from pathlib import Path

import pandas as pd
import yaml
Expand Down Expand Up @@ -50,10 +51,9 @@ def reloadExperiments(self, data):
self.data = []
for path in data:
if path.endswith(SOURCE):
config_path = Path(path).parent / Path(".hydra/config.yaml")
config = yaml.load(
open(
path.replace("/{}".format(SOURCE), "/.hydra/config.yaml"), "r"
),
open(config_path, "r"),
Loader=yaml.FullLoader,
)
elif path.endswith(MULTI_ROOT):
Expand Down

0 comments on commit 6e0da3c

Please sign in to comment.