Quentin Guidée
e8b86ca6a1
[upstream] Update
2020-10-10 02:28:33 +02:00
Gabriel Ozouf
34ebf1e6e0
[python/kandinsky] Remove additional interrupt
...
Additional checks for interruptions were making the kandinsky module
slower.
/!\ Some scripts are now very difficult to interrupt
Change-Id: I4c18273d8895deaac68084411a52556c8459d52b
2020-08-31 15:32:02 +02:00
Jean-Baptiste Boric
43376996a1
[python] Add RTC functions in time module
2020-08-16 15:49:40 +02:00
M4x1m3
c5500eee06
[mpy/os] Removes useless file
2020-07-23 11:12:31 +02:00
M4x1m3
14a3ea51c4
[mpy/os] listdir
2020-07-21 22:27:04 +02:00
M4x1m3
18ccc0c771
[mpy/os] rename
2020-07-21 22:27:04 +02:00
M4x1m3
f65881420c
[mpy/file] Fixed concurency issues
2020-07-21 22:27:04 +02:00
M4x1m3
8eeae5f161
[mpy/os] Added remove
2020-07-21 22:27:04 +02:00
M4x1m3
2dce8a1343
[mpy/os] uname
2020-07-21 22:27:00 +02:00
M4x1m3
b9a6298ffa
[mpy] Added os module
2020-07-21 18:00:12 +02:00
M4x1m3
2040a2cd5b
[mpy/files] Fixed crash with new files in append mode
2020-07-21 16:57:57 +02:00
Joachim LF
d7ac7e19bb
[Update] Epsilon 14
2020-07-13 10:36:47 +02:00
M4x1m3
73688343a0
[apps/code] Added File category to python toolbox
2020-07-06 11:56:11 +02:00
M4x1m3
646088e429
[mpy/files] Removed RAM/FLASH logic, added a bit of doc.
2020-07-06 10:05:55 +02:00
M4x1m3
efcf9903a9
[mpy/files] implemented open
2020-07-05 21:20:52 +02:00
M4x1m3
61a9e492bd
[mpy/files] truncate, readlines, writelines, name, mode
2020-07-05 21:20:47 +02:00
M4x1m3
55bc23c6d7
[mpy/files] __iter__, __next__
2020-07-05 21:20:40 +02:00
M4x1m3
fba5295502
[mpy/files] readline
2020-07-05 21:20:37 +02:00
M4x1m3
a47ef29236
[mpy/files] __enter__, __exit__
2020-07-05 21:20:32 +02:00
M4x1m3
1aebec52bb
[mpy/files] fixed read, added write
2020-07-05 21:20:25 +02:00
M4x1m3
8178eadd49
[mpy/files] read
2020-07-05 21:20:20 +02:00
M4x1m3
7d61f867cf
[mpy/files] closed attribute
2020-07-05 21:20:14 +02:00
M4x1m3
420edf6092
[mpy/files] close
2020-07-05 21:20:09 +02:00
M4x1m3
a20ac589ec
[mpy/files] seek, tell, seekable
2020-07-05 21:19:57 +02:00
M4x1m3
d0f3ec887e
[mpy/files] Added ion.file
2020-07-05 21:19:49 +02:00
Quentin
db10723e76
[Update] Upstream
2020-06-18 19:25:17 +02:00
Arthur Camouseigt
d7fb5c256c
[turtle] Fixed remanent images bug
...
We now erase the turtle before writing text. This way we can redraw it
on top of it, preventing overlapping and remanent images.
Those scripts are causing issues :
goto(-30,50)
write('coucou')
left(270)
goto(30,50)
write('oui')
-----------
up()
goto(-30,50)
write('coucou')
goto(30,50)
write('oui')
Change-Id: I01a6e5f8308937b5051165548c2046883da587d2
2020-06-10 10:35:13 +02:00
Émilie Feral
420dd04766
[apps/shared][python/port] CurveView::drawArrow uses pixel computation
...
instead of float computation to avoid precision errors, by default the
arrow size is decided in pixels.
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
4b20c69174
[python/modturtle.cpp] Added support for float parameter in colormode()
...
The function can now accept the value 1.0 in addition to 1
Change-Id: I9a7021076844784ca997fc618253524089cbe855
(cherry picked from commit c69e1542ecc9a7e474a3f1e92cc97f644bf4b701)
2020-06-04 14:50:10 +02:00
Émilie Feral
1b2750c247
[python] matplotlib: add assertions to ensure authorized access to
...
args[i]
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
aec25eb8d4
[matplotlib/modpyplot.cpp] Modified the error messages due to too many arguments
...
Change-Id: I48a8283a0c6311a52df152cbce3b0c824b46454b
(cherry picked from commit 94b90533c751c10dadb8e6144e613ed4839f09c4)
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
e1a356fe88
[matplotlib/modpyplot.cpp] Added support for third parameter color in plot function
...
It is now possible to specify the color of the plot through a third positional argument in the plot function. However, is a keyword (color or c) is then used, it will override the previous color command.
Change-Id: I5a73ddb322e650db486de568e4a56b4752751cfb
(cherry picked from commit e6cc196cca405e5a4f8058a6af917aa0e7962b8a)
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
4b88521e14
[matplotlib/modpyplot.cpp] Removing c keyword from some functions to match pyplot spec
...
Change-Id: I53fa8c9edc8bcfdfb9c36797b41a1c36494e2c74
(cherry picked from commit 42b245ed97d6fa3394316888489660f4f76f0a78)
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
06dc97152c
[matplotlib/modpyplot.cpp] Added support for keyword argument c, a shortcut for color
...
Change-Id: I89227a73fca6fd50ae190107fc23c3c7acadc6db
(cherry picked from commit bc642c2d8d105ed609cf8b4d86800879645afd7e)
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
d6e32594b8
[test/matplotlib.cpp][modpyplot.cpp] Changed matplotlib tests
...
Modified the tests for pyplot module and added error raisers to module functions
Change-Id: I164feafaf562f16d646841c1f9dfbbe32e6a763b
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
68e3208799
[matplotlib/modpyplot.cpp] Removed function previously used for setting colors
...
Change-Id: I76bb489d5a5b78162873f68c5e3cca8cebb77aba
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
c39b432dd6
[matplotlib/modpyplot.cpp] Adding keyword arguments support for plot function
...
plot function can now take into account the following keywords arguments :
- color
Change-Id: I29b82ba25fa68ec4d8e1797112f133440dee22a0
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
b26d448573
[matplotlib/modpyplot.cpp] Adding keyword arguments support for scatter function
...
scatter function can now take into account the following keywords arguments :
- color
Change-Id: Iaea5a7a46d25e3efe2214368334ce859900d6ae6
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
5daaa2c050
[matplotlib/modpyplot.cpp] Adding keyword arguments support for hist function
...
hist function can now take into account the following keyword arguments :
- color
Change-Id: I69eca6555d892db958d2bd002f438a40908b2d9d
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
0e3684e137
[matplotlib/modpyplot.cpp] Adding keyword arguments support for bar function
...
bar function can now take into account the following keywords arguments :
- color
Change-Id: Iefa68cff59986d89c37cfecd7e3750f03c33ca59
2020-06-04 14:50:09 +02:00
Arthur Camouseigt
41da4f2bd5
[matplotlib/modpyplot] Adding keyword argument support for arrow function
...
Arrow function can now take into account the following keywords arguements :
- head_width
- color
Change-Id: I205dcd5776d53a4efcbf1e6da4edf29d8e399cab
2020-06-04 14:50:09 +02:00
Arthur Camouseigt
985c31920d
[matplotlib/plot_store.cpp] Removed useless function
...
checkFloatType function used to check for an obj type before cast. This is already done by mp_obj_get_float
Change-Id: I745bb3066328678ab0b2a2149c8f38a84f26fbd2
2020-06-04 14:50:09 +02:00
Arthur Camouseigt
68ff71f72a
[matplotlib/modpyplot.cpp] Modified the way to add mp_float
...
To prevent crashes caused by failed casts from char to float, removed optimization.
Change-Id: Ia91aafa007538b6c05f7aace5e5962989d313c98
2020-06-04 14:50:09 +02:00
Arthur
fe7c4b1a8a
[python/turtle] Added write method
...
Allows user to print strings with the turtle
Change-Id: I06a3832f6fa36d29506be10c48a1b2fb34cb69fb
2020-06-04 14:50:09 +02:00
Arthur
7cd0b7e0e0
[matplotlib] Removed useless initializers in PlotStore constructor
...
Change-Id: Idea0ce07cbc800139539f9d3fb27811920645184
2020-06-04 14:50:09 +02:00
Arthur
13d0bcf676
[matplotlib] Modified isEmpty method for showing axis
...
Added a condition for being considered empty.
Allows axis("on") or axis((0,1,2,3)) to display something with show()
This behavior is the same as the python module
Change-Id: If5f3b07c280ee9ead2bc23d23cbbb4f01da7eae5
2020-06-04 14:50:09 +02:00
Émilie Feral
0c9fb57b33
[python] matplotlib: check float type of the head_width arg of arrow function
2020-06-04 14:50:09 +02:00
Émilie Feral
9b7c47a7f0
[python] matplotlib: arrow can have up to 6 args
2020-06-04 14:50:09 +02:00
Émilie Feral
083f959b7b
[python] matplotlib: Enable to change the arrow shape via the head_width
...
arg
2020-06-04 14:50:09 +02:00
Émilie Feral
0f8f82b94b
[python] matplotlib: Add a parameter to to arrow to set the arrow width
2020-06-04 14:50:09 +02:00