suppress UnicodeDecodeError: ascii codec - when import GPy

This commit is contained in:
kenokabe 2016-04-22 19:00:46 +09:00
parent 3c2edf852b
commit 025862ec31

View file

@ -54,12 +54,12 @@ on_rtd = os.environ.get('READTHEDOCS', None) == 'True' #Checks if RTD is scannin
if not (on_rtd):
path = os.path.join(os.path.dirname(__file__), 'data_resources.json')
json_data=open(path).read()
json_data=open(path, encoding='utf-8').read()
data_resources = json.loads(json_data)
if not (on_rtd):
path = os.path.join(os.path.dirname(__file__), 'football_teams.json')
json_data=open(path).read()
json_data=open(path, encoding='utf-8').read()
football_dict = json.loads(json_data)
@ -1482,5 +1482,3 @@ def cmu_mocap(subject, train_motions, test_motions=[], sample_every=4, data_set=
if sample_every != 1:
info += ' Data is sub-sampled to every ' + str(sample_every) + ' frames.'
return data_details_return({'Y': Y, 'lbls' : lbls, 'Ytest': Ytest, 'lblstest' : lblstest, 'info': info, 'skel': skel}, data_set)