Skip to content

Numpy attribute error #3

Description

@jeroenbouwman

If I run enigma usining numpy version 2.2.4 I get an Atribute error in the following module and line:

File ~/eniigma_try3-0.0-py3.13.egg/ENIIGMA/GA/optimize.py:456,

in ENIIGMA(od_file, xmin, xmax, list_sp, n_points, group_comb, skip, pathlib, factor1, factor2, dtype, St, freqs, gen, ga_min, ga_max, mutp, popsize, fitness, initializator, mutator, crossover, scaling, selector, termination)
454 data = []
455 data = [line.split() for line in lines]
--> 456 data2 = np.asfarray(data)
458 # exit()
460 from ENIIGMA.GA import GA_module_pyev as gam

AttributeError: np.asfarray was removed in the NumPy 2.0 release. Use np.asarray with a proper dtype instead.

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