Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading Slakh tracks in Windows #542

Closed
migperfer opened this issue Nov 9, 2021 · 1 comment
Closed

Loading Slakh tracks in Windows #542

migperfer opened this issue Nov 9, 2021 · 1 comment

Comments

@migperfer
Copy link
Contributor

migperfer commented Nov 9, 2021

Loading tracks from Slakh in windows result in an exception.

In slakh.py there is a particular line that uses os.sep to use the OS separator, but self._track_paths["metadata"][0] returns always the linux-like path 'slakh2100_flac_redux/train/TrackXXXXX/metadata.yaml' so using os.sep fails.

I guess importing pathlib and replacing that line for self.split = str(PurePath(self._track_paths["metadata"][0])).split(os.sep)[1] should resolve the problem, but I cannot really test it since it is impossible to clone mirdata in windows as stated in issue #517 .

@harshpalan
Copy link
Collaborator

Fixed with #567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants