np.asscalar()
is deprecated and prevents the metadata from being saved in some experiments
#98
Labels
bug
Something isn't working
I got the following error trace whilst saving the metadata in Stytra after the experiment finished:
It seems that the
prepare_json()
function relies on a deprecated Numpy function. The fix seems relatively easy: changereturn np.asscalar(it)
toreturn it.item()
.I tested it, and I can confirm that the metadata file is saved again as before. However, I didn't check the file contents to see if the output has changed.
The text was updated successfully, but these errors were encountered: