TUW-GEO / ismn

Readers for the data from the International Soil Moisture Network
https://ismn.earth/en/
MIT License
32 stars 21 forks source link

Object arrays cannot be loaded when allow_pickle=False #10

Closed awst-baum closed 5 years ago

awst-baum commented 5 years ago

When using ismn in my environment, I get this error:

in test
    ismn_reader = ISMN_Interface(ismn_data_folder)
.../lib/python3.6/site-packages/ismn/interface.py:550: in __init__
    os.path.join(path_to_data, 'python_metadata', 'metadata.npy'))
.../lib/python3.6/site-packages/numpy/lib/npyio.py:447: in load
    pickle_kwargs=pickle_kwargs)
.../lib/python3.6/site-packages/numpy/lib/format.py:692: in read_array
    raise ValueError("Object arrays cannot be loaded when "
E   ValueError: Object arrays cannot be loaded when allow_pickle=False

numpy version: 1.16.3

This is probably because the default value for allow_pickle seems to have changed to "False": release notes, security issue description.