Skip to content
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

ufold_test.py error on clean install on Ubuntu 22.04.4 LTS #34

Open
alevitan-cajal opened this issue Jul 12, 2024 · 0 comments
Open

ufold_test.py error on clean install on Ubuntu 22.04.4 LTS #34

alevitan-cajal opened this issue Jul 12, 2024 · 0 comments

Comments

@alevitan-cajal
Copy link

python ufold_test.py --test_files TS2 throws an error after clean install on Ubuntu 22.04.4 LTS:

Traceback (most recent call last):
  File "/root/UFold/ufold_test.py", line 341, in <module>
    main()
  File "/root/UFold/ufold_test.py", line 274, in main
    test_data = RNASSDataGenerator('data/',test_file+'.cPickle')
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/UFold/ufold/data_generator.py", line 28, in __init__
    self.load_data()
  File "/root/UFold/ufold/data_generator.py", line 46, in load_data
    self.pairs = np.array([instance[-1] for instance in self.data])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (38,) + inhomogeneous part.

I've found numpy github issues that suggest this is due to the version of numpy specified in the conda yaml file, but looking for more details.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant