You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice the string value for label is b'Nose Injury' rather than the expected Nose Injury.
I haven't looked at the code, but my guess is that labels are actually byte string objects rather than unicode string objects. And when the label object is converted to a string as part of the JSON export, the b'label' notation is applied.
Can the byte strings be decoded to unicode strings prior to the JSON export (or any other option that fixes this)?
The text was updated successfully, but these errors were encountered:
I could swear I fixed this issue (btw, its due to python 3 vs 2 incompatibility and changes in the way string byte arrays are handled), maybe for the browser, and not for the API; cant find my commit :P ? Its important though so I agree this should be chased up.. Thanks for the report!
Copying part of the JSON result from https://www.ebi.ac.uk/spot/oxo/api/search?ids=EFO:0009623 below:
Notice the string value for label is
b'Nose Injury'
rather than the expectedNose Injury
.I haven't looked at the code, but my guess is that labels are actually byte string objects rather than unicode string objects. And when the label object is converted to a string as part of the JSON export, the
b'label'
notation is applied.Can the byte strings be decoded to unicode strings prior to the JSON export (or any other option that fixes this)?
The text was updated successfully, but these errors were encountered: