Skip to content

Default Script Fails when Run with Testing/Training Data #2

@cai-michael

Description

@cai-michael

When running the default test script python scripts/netTCR.py -infile test_data/data.txt -outfile NetTCR_predictions.txt using either Python 2.7.17 or Python 3.6.9 I get the following output:

Traceback (most recent call last): File "scripts/netTCR.py", line 170, in <module> best_params = np.load(param_dir + "params.t." + str(t) + ".v." + str(v) + ".s." + str(s) + ".npz")['arr_0'] File "/home/local/ASUAD/mrcai/.local/lib/python2.7/site-packages/numpy/lib/npyio.py", line 262, in __getitem__ pickle_kwargs=self.pickle_kwargs) File "/home/local/ASUAD/mrcai/.local/lib/python2.7/site-packages/numpy/lib/format.py", line 696, in read_array raise ValueError("Object arrays cannot be loaded when " ValueError: Object arrays cannot be loaded when allow_pickle=False

As a workaround at the moment you can downgrade numpy to 1.16.1 to be able to run the script successfully.

I think the default value in numpy has changed and allow_pickle needs to be directly assigned as True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions