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
error:
line 69 in netpyne.sim.load.py is using object_hook to convert data loaded with JSON package. data = json.load(fileObj, object_hook=_byteify)
Expected behaviour
load a json file and save the strings as Unicode type
Current behaviour:
load.json loads the dictionary, and applies the _bitify function leaving all Unicode text as binary type, resulting in no data being accessible by the GUI
NOTE:
that works for python 2 because there is a difference between string and Unicode, but py3 adopted Unicode as standard
The text was updated successfully, but these errors were encountered:
probably will need to add a condition to check if running py2 or py3
rodriguez-facundo
changed the title
py3 tries to convert unicode to str in python 3 which is default str
error trying to import model from json file
Oct 2, 2018
line 69 in netpyne.sim.load.py is using object_hook to convert data loaded with JSON package.
data = json.load(fileObj, object_hook=_byteify)
load a json file and save the strings as Unicode type
load.json loads the dictionary, and applies the _bitify function leaving all Unicode text as binary type, resulting in no data being accessible by the GUI
that works for python 2 because there is a difference between string and Unicode, but py3 adopted Unicode as standard
The text was updated successfully, but these errors were encountered: