Search found 3 matches

by emp20
Fri Apr 24, 2020 7:41 pm
Forum: Pyboard D-series
Topic: uarray issues
Replies: 3
Views: 255

Re: uarray issues

Dear Peter,

your comment was very useful. I used data_array=data_array.append(float(f.readline())) when I should have used data_array.append(float(f.readline()))
A rookie mistake.

best wishes,

emp20
by emp20
Fri Apr 24, 2020 6:54 pm
Forum: Pyboard D-series
Topic: uarray issues
Replies: 3
Views: 255

Re: uarray issues

Dear Peter, Thank you for your quick reply. I modified my code according to your code (which also worked on my pyboard) to: from array import array data = array('f',[]) for i in range (counter, counter+N_SAMPLE): data=data.append(float(f.readline())) and I still get the AttributeError : NoType objec...
by emp20
Fri Apr 24, 2020 5:27 pm
Forum: Pyboard D-series
Topic: uarray issues
Replies: 3
Views: 255

uarray issues

Hello, I have an issue with uarray on pyboard. Here is some code which I try to implement: import uarray as array data_array = array.array('f',[]) for i in range (counter, counter+N_SAMPLE): data_array=data_array.append(float(f.readline())) I have an issue in the last line and the error in REPL is t...