Repository: mir-dataset-loaders/mirdata

Issue:
gtzan-genre 'hiphop' vs 'hip-hop'
gtzan_genre uses the genre name 'hiphop', where the jams gtzan_genre schema expects 'hip-hop' so the jams files do not validate.

(Found as part of #241 )

Discussion:
codecov[bot]: # [Codecov](https://codecov.io/gh/mir-dataset-loaders/mirdata/pull/249?src=pr&el=h1) Report
> Merging [#249](https://codecov.io/gh/mir-dataset-loaders/mirdata/pull/249?src=pr&el=desc) into [master](https://codecov.io/gh/mir-dataset-loaders/mirdata/commit/ec3eb7820885cad4f1586a6bf493b85c431088e9&el=desc) will **increase** coverage by `0.00%`.
> The diff coverage is `100.00%`.


```diff
@@           Coverage Diff           @@
##           master     #249   +/-   ##
=======================================
  Coverage   98.78%   98.78%           
=======================================
  Files          20       20           
  Lines        2136     2138    +2     
=======================================
+ Hits         2110     2112    +2     
  Misses         26       26           
```


Patch:
diff --git a/mirdata/gtzan_genre.py b/mirdata/gtzan_genre.py
index f9806d5..6a55642 100644
--- a/mirdata/gtzan_genre.py
+++ b/mirdata/gtzan_genre.py
@@ -63,6 +63,9 @@ class Track(track.Track):
         self._track_paths = DATA.index[track_id]
 
         self.genre = track_id.split(".")[0]
+        if self.genre == 'hiphop':
+            self.genre = 'hip-hop'
+
         self.audio_path = os.path.join(self._data_home, self._track_paths["audio"][0])
 
     @property


Test patch:
diff --git a/tests/test_gtzan_genre.py b/tests/test_gtzan_genre.py
index 615654f..7378c65 100644
--- a/tests/test_gtzan_genre.py
+++ b/tests/test_gtzan_genre.py
@@ -32,6 +32,11 @@ def test_track():
     assert audio.shape == (663300,)
 
 
+def test_hiphop():
+    track = gtzan_genre.Track('hiphop.00000', data_home=TEST_DATA_HOME)
+    assert track.genre == 'hip-hop'
+
+
 def test_to_jams():
     default_trackid = "country.00000"
     track = gtzan_genre.Track(default_trackid, data_home=TEST_DATA_HOME)