uci-cbcl / UFold

MIT License
58 stars 26 forks source link

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

Open alevitan-cajal opened 1 month ago

alevitan-cajal commented 1 month ago

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!