Skip to content

Bug: invalid NumPy API usage (np.concat does not exist) #1

@abdallalahwani

Description

@abdallalahwani

In data/generate_tsp_with_multirun_2opt.py (lines 79–80), the code uses
np.concat, which does not exist in NumPy.

Current code:

tours = np.concat([result[0] for result in results_list], axis=0)
costs = np.concat([result[1] for result in results_list], axis=0)

This raises:
AttributeError: module 'numpy' has no attribute 'concat'


Expected:
tours = np.concatenate([result[0] for result in results_list], axis=0)
costs = np.concatenate([result[1] for result in results_list], axis=0)

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