Commit graph

21 commits

Author SHA1 Message Date
Jeff Epler
d439a491bb
Don't use "bitmap" property of TileGrid objects
In 8.0, the TIleGrid adds its own "bitmap" property. This interfered, causing the exception reported in guide feedback:
```
Traceback (most recent call last):
File "code.py", line 59, in
File "code.py", line 40, in __init__
NotImplementedError: Call super().__init__() before accessing native object.
```
2022-07-16 08:39:17 -05:00
dherrada
7d3c4b334a Did last 20 file renames 2021-09-30 14:49:27 -04:00
Kattni Rembor
47197724e9 Move to rainbowio 2021-09-22 17:50:46 -04:00
dherrada
caff0dc46e Linted 2021-08-19 11:13:47 -04:00
dherrada
067e40800e Renamed a few other files 2021-08-18 13:54:36 -04:00
a426be25e1 Add 141 skip files
Each skip file has been populated with the pylint errors I actually got locally
when checking the file.
2021-08-11 14:02:31 -05:00
foamyguy
f5cba4b803 more widely supported import syntax 2021-08-01 09:03:39 -05:00
foamyguy
e5b015b46f update number_crunching for ulab renames and rainbowio + fix for barometric and pulse 2021-07-31 12:58:31 -05:00
353b051a80 waterfall: ulab spectrogram was moved from extras to fft
.. pointed out by learn system feedback
2020-12-21 09:18:41 -06:00
e0c0dd88c9 cluepulse: APDS9960 proximity was changed to a property
A learn system feedback pointed out that the old code gave the error "Int object is not callable".
2020-12-21 09:18:41 -06:00
Jeff Epler
d770ac5841 ulab: correct waterfall demo
At one time, ulab's min and max had a bug where they returned an array
with a single item inside.  This bug has been fixed (by 5.3.0) so remove
the workaround.
2020-07-15 15:22:34 -05:00
Zoltán Vörös
df73b805da
removed trailing whitespace in line 24 2020-05-02 19:47:14 +02:00
Zoltán Vörös
4a1b375e88
beautified printout 2020-05-02 14:32:09 +02:00
Zoltán Vörös
d012c336b2
call ulab.numerical.std directly in timeit
New times 

```
Computing the RMS value of 100 numbers
traditional          :    5.188ms [result=3535.843611]
ulab, with ndarray, some implementation in python :    0.504ms [result=3535.853624]
ulab only, with list :    0.636ms [result=3535.854340]
ulab only, with ndarray :    0.121ms [result=3535.854340]
```
2020-05-02 14:18:15 +02:00
Zoltán Vörös
734497f951
fixed indentation error 2020-05-02 14:14:22 +02:00
Zoltán Vörös
11188ad831
removed micropython-specific code
The update to this PR removes `micropython`-specific code. Tested on an adafruit feather board with the following results:

```
Computing the RMS value of 100 numbers
traditional          :    5.472ms [result=3535.843611]
ulab, with ndarray, some implementation in python :    0.500ms [result=3535.853624]
ulab only, with list :    0.655ms [result=3535.854340]
ulab only, with ndarray :    0.139ms [result=3535.854340]
```
The result of the second run might be misleading (seems to be faster than the third), because it does not contain the costs of the list-to-ndarray conversion (since that happens earlier, outside of time measurement).
2020-05-02 14:12:46 +02:00
Zoltán Vörös
9f00af2e36
update benchmark.py 2020-04-22 07:53:55 +02:00
Jeff Epler
f699eb9d01 waterfall: adjust to changed name of function 2020-03-27 10:07:23 -05:00
a17e8d1af4 correctly report the size of array benchmarked 2020-03-06 16:28:59 -06:00
f47a1bb8bf tweaks to waterfall -- reduces background noise reception 2020-03-06 15:52:24 -06:00
f8af760ba0 Add examples for upcoming ulab guide 2020-03-06 15:19:48 -06:00