On 07 Jul 2017, at 4:24 PM, [email protected] wrote:
>
> ps : I'd like to use the following code that is much more familiar for me :-)
>
> COMP_list = np.asarray(COMP_list, dtype = np.float64)
> i = np.arange(1,NumberOfRecords,2)
> COMP_list = np.delete(COMP_list,i)
>
Not sure about the background of this, but if you want to remove every second
entry
(if NumberOfRecords is the full length of the list, that is), it would always
be preferable
to make changes to the list, or even better, extract only the entries you want:
COMP_list = np.asarray(COMP_list[::2], dtype = np.float64)
Have a good weekend
Derek
_______________________________________________
NumPy-Discussion mailing list
[email protected]
https://mail.python.org/mailman/listinfo/numpy-discussion