Skip to content

inhomogeneous error #2

@wanguan2000

Description

@wanguan2000

Traceback (most recent call last):
File "/home/peptide/xDeep-AcPEP/prediction/prediction.py", line 77, in
temp_fea_file = feature_generator(fasta_data_file, temp_fea_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/peptide/xDeep-AcPEP/prediction/feature_generator.py", line 41, in feature_generator
np.save(temp_file_path, aa_feature_list)
File "/anaconda3/lib/python3.11/site-packages/numpy/lib/npyio.py", line 545, in save
arr = np.asanyarray(arr)
^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (4, 2) + inhomogeneous part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions