Farama-Foundation / Minari

A standard format for offline reinforcement learning datasets, with popular reference datasets and related utilities
https://minari.farama.org
Other
297 stars 44 forks source link

fix dataset_id error on Windows #239

Closed kaixin96 closed 2 months ago

kaixin96 commented 2 months ago

Description

Changed how to retrieve dataset_id from the path when listing local datasets. Previously, a string returned by os.path.join will be appended to the dataset_ids. However, this would break on Windows as Windows paths use backslash. Such dataset_id doesn't match the required pattern. This fix wraps the path string with pathlib.PurePath and converts it to posix path.

Fixes #238.

Type of change

Screenshots

Before Screenshot 2024-09-02 193110

After image

Checklist: