-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error on tutorial Evolution of sequence, structure and dynamics with Evol and SignDy #1841
Comments
what version of numpy are you using? |
numpy 1.23.5 pypi_0 pypi |
I've just tried in environments with two different numpy versions using another ensemble that I have and that worked in both cases. I also tried both the latest development master branch and v2.4.1 from the tag and both worked in the latter environment with the higher numpy version python 3.8.13 h12debd9_0 python 3.9.18 h955ad1f_0
I've also just tried this in a new conda environment with python 3.8 and installing prody from pypi/pip, getting numpy 1.23.5 too, and that also works. I've also tried in this environment with the first 10 pdb_ids from the filtered dali_rec and that worked fine too:
So, I'm not sure what's wrong. @atbogetti, any ideas? |
Hello @Armanda87 and @jamesmkrieger, I will look into this shortly and write back with any findings. |
I am actually getting the same error as you, @Armanda87. @jamesmkrieger I cannot get it to work for me using the same code snippet in the tutorial and the one you provided. I am using the most recent prody installed from source with python 3.11 and numpy 1.23.5. |
I changed this line ( ProDy/prody/dynamics/signature.py Line 1887 in 412c8fa
|
Why python 3.11? It’s unlikely that ProDy is supported for that. We run checks up to 3.10 The bug report also mentions files in python 3.8 directories Nevertheless, it’s good you can reproduce the error |
Load it back and see if you can get reasonable results from all the subsequent analyses and probably some prior things in the tutorials too |
You’ll also have to see if that fix works in older python versions |
Good morning
i found another error in the tutorial "Evolution of sequence, structure and dynamics with Evol and SignDy" on the step "Step 2: Mode ensemble"
Thanks and i hope you can help me again
the error "ValueError Traceback (most recent call last)
Cell In[49], line 1
----> 1 saveModeEnsemble(gnms, 'PBP-I')
File ~/miniconda3/envs/py39/lib/python3.8/site-packages/ProDy-2.4.1-py3.8-linux-x86_64.egg/prody/dynamics/signature.py:1887, in saveModeEnsemble(mode_ensemble, filename, atoms, **kwargs)
1884 filename += '.npz'
1886 ostream = openFile(filename, 'wb', **kwargs)
-> 1887 np.savez_compressed(ostream, **attr_dict)
1888 ostream.close()
1890 return filename
File <array_function internals>:200, in savez_compressed(*args, **kwargs)
File ~/miniconda3/envs/py39/lib/python3.8/site-packages/numpy/lib/npyio.py:686, in savez_compressed(file, *args, **kwds)
623 @array_function_dispatch(_savez_compressed_dispatcher)
624 def savez_compressed(file, *args, **kwds):
625 """
626 Save several arrays into a single file in compressed
.npz
format.627
(...)
684
685 """
--> 686 _savez(file, args, kwds, True)
File ~/miniconda3/envs/py39/lib/python3.8/site-packages/numpy/lib/npyio.py:716, in _savez(file, args, kwds, compress, allow_pickle, pickle_kwargs)
714 for key, val in namedict.items():
715 fname = key + '.npy'
--> 716 val = np.asanyarray(val)
717 # always force zip64, gh-10776
718 with zipf.open(fname, 'w', force_zip64=True) as fid:
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (85,) + inhomogeneous part."
The text was updated successfully, but these errors were encountered: