Skip to content

Commit

Permalink
fix dataset_id error on Windows (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixin96 authored Sep 2, 2024
1 parent d0134f9 commit 7b08029
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion minari/storage/local.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import importlib.metadata
import os
import pathlib
import shutil
import warnings
from typing import Dict, Iterable, Tuple, Union
Expand Down Expand Up @@ -81,7 +82,7 @@ def recurse_directories(base_path, namespace):
namespaced_dir_name = os.path.join(namespace, dir_name)
# Minari datasets must contain the data directory.
if "data" in os.listdir(dir_path):
dataset_ids.append(namespaced_dir_name)
dataset_ids.append(pathlib.PurePath(namespaced_dir_name).as_posix())
else:
recurse_directories(base_path, namespaced_dir_name)

Expand Down

0 comments on commit 7b08029

Please sign in to comment.