Rostlab / SeqVec

Modelling the Language of Life - Deep Learning Protein Sequences
http://embed.protein.properties
MIT License
116 stars 13 forks source link

Selecting npz writes wrongly nested data #13

Closed konstin closed 4 years ago

konstin commented 4 years ago

Writing an .npz file creates a file that contains a dict with one entry arr_0 mapping to a zero-dimensional array that contains the dict with the actual data.

Likely this can be fixed by replacing np.savez(emb_path, emb_dict) with np.savez(emb_path, **emb_dict).

mheinzinger commented 4 years ago

Fixed.