Quentin Guidée
1347b1a20c
[upstream] Update
2020-11-27 13:23:07 +01:00
Joachim Le Fournis
bd5cdb0f65
[py] Support round on int
2020-11-23 12:12:46 +01:00
Émilie Feral
7acec88006
[python] Port: we used the wrong variable
...
Found by clang-analyzer
2020-11-05 10:28:24 +01:00
Hugo Saint-Vignes
7e5ddcd36b
[python/turtle] Prevent position overflow from turtle
...
Change-Id: Ieb8a7b64bab1ce6fac23ca4c8dcb43467b8d4d5c
2020-11-04 15:33:01 +01:00
Hugo Saint-Vignes
70a628f2c8
[apps] Fix Python assert crash on malloc free
...
Change-Id: I48f86422f7d6af5227e2556e6ef531dfad696da4
2020-11-04 15:30:53 +01:00
Hugo Saint-Vignes
641186d89c
[python] Accept "grey" color
...
Change-Id: Ia9b70eb3b4205ae9571eb4269410c30cfbdd1214
2020-11-04 15:07:20 +01:00
Hugo Saint-Vignes
e27c668c40
[apps,escher,kandinsky,poincare,python] Replace every "grey" with "gray"
...
Change-Id: I60a232849dce90f70e6977b6024d6e9b1ce1b731
2020-11-04 15:07:20 +01:00
Quentin Guidée
3c9bf7456e
Merge branch 'omega-hotfix' into omega-dev
2020-10-18 09:59:17 +02:00
Quentin Guidée
e8b86ca6a1
[upstream] Update
2020-10-10 02:28:33 +02:00
Gabriel Ozouf
7dcf1662b0
[python/helpers] Change interrupt check delay
...
Keyboard interruption used to be checked once every 20000 calls to
micropython_port_vm_hook_loop. However, if costly functions were
executed in between calls to this method, the delay for activating
interruptions would increase.
Now, keyboard interruption is checked after a fixed amount of time has
passed. This way, if the process waits a long time between two calls
to micropython_port_vm_hook_loop, it is still interrupted in a timely
manner.
Change-Id: I37ca3bd4a996fa086078f504340dd857526e356a
2020-08-31 15:32:02 +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
Hugo Saint-Vignes
7eb694822d
[python] Add magenta color
...
Change-Id: I7a5e12f6f3d79da802149a6aeef88387941ccdd8
2020-08-11 17:08:23 +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
M4x1m3
231223086c
[mpy] Added passing errors to JS
2020-07-15 11:38:40 +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
Léa Saviot
1ccb55a16e
[apps/code] Fix script importation status
...
Scenario: Execute the script parabola.py, open the variable box, select
any leaf, enter, open the variable box again -> no variables are loaded
anymore
2020-06-09 15:12:13 +02:00
Quentin
973a64c813
[Fix] Github conflicts fail in qstrdefs.in.h
2020-06-07 22:34:42 +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