-
|
hi, got another issue, when using the random_swap function it returns the following error : │ 105 │ │ new_genotype = np.where(mask, mutator, individual).astype(int).tolist() │ list object has no attribute astype. which seems coherent as new_genotype is converted to a list the line above ... from a000.py file I remove the astype(int).tolist() on line 105 and it works like a charm :) Thought ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
As I mentioned on Canvas: That is a bug indeed; we call "astype(int).tolist()" twice. Good catch! |
Beta Was this translation helpful? Give feedback.
As I mentioned on Canvas:
That is a bug indeed; we call "astype(int).tolist()" twice. Good catch!
If you notice, we double "astype(int).tolist()" on both line 105 and 106, removing it from 105 makes the most sense.
(I will make the same fix)