Commit Graph

215 Commits

Author SHA1 Message Date
Bertrand Benjamin 5ea09aebf2 Feat: Defaut render is tex when Expression is imported from mapytex 2019-06-28 09:34:06 +02:00
Bertrand Benjamin 152fa2301c Test: add doctest for a bug about tree encapsulation 2019-06-28 09:02:17 +02:00
Bertrand Benjamin c540471d4a Chore: module import and metadata 2019-06-28 08:52:37 +02:00
Bertrand Benjamin ca7e6b2ecb Fix: Fix encaspulate Expression._tree when init with random 2019-06-27 21:31:17 +02:00
Bertrand Benjamin 91efea28cd Merge branch 'FT_random' of git_opytex:/lafrite/Mapytex into FT_random 2019-05-16 19:42:52 +02:00
Bertrand Benjamin 8ab306683b Fix: forgot to skip a doctest 2019-05-16 19:02:31 +02:00
Bertrand Benjamin fbe72ae764 Feat: Expression can be generated randomly!!! 2019-05-16 17:21:34 +02:00
Bertrand Benjamin ca33a00877 Feat: Split moify into the function and the coroutine 2019-05-16 17:17:59 +02:00
Bertrand Benjamin 037fd9f68a Feat(random): random str parsing is done 2019-05-14 07:03:05 +02:00
Bertrand Benjamin 040dfff0ec Doc: Doctest for Tree generator 2019-05-14 07:01:49 +02:00
Bertrand Benjamin 4e7ba55970 Feat: random variable generator done! 2019-05-14 07:01:02 +02:00
Bertrand Benjamin b781408d31 Fix: doctest over sets 2019-05-14 06:59:46 +02:00
Bertrand Benjamin c9c44be0d1 Feat(random): Start random tree generation 2019-05-14 06:59:46 +02:00
Bertrand Benjamin 538cbdcbcc Feat(random): random tree generation flow is ok. Need to create generate
function
2019-05-14 06:56:33 +02:00
Bertrand Benjamin 3e43684937 Feat(random): Start random tree generation 2019-05-14 06:56:33 +02:00
Bertrand Benjamin 09b04d2703 Style: apply black 2019-05-14 06:55:56 +02:00
Bertrand Benjamin ca7cd001d8 Feat(random): random str parsing is done 2019-05-13 19:37:34 +02:00
Bertrand Benjamin 33ded0d90e Doc: Doctest for Tree generator 2019-05-12 17:14:25 +02:00
Bertrand Benjamin 295677045b Feat: random variable generator done! 2019-05-12 16:58:36 +02:00
Bertrand Benjamin d94beef79a Fix: doctest over sets 2019-05-12 15:59:49 +02:00
Bertrand Benjamin c7561fa6fe Feat(random): random tree generation flow is ok. Need to create generate
function
2019-05-09 18:37:39 +02:00
Bertrand Benjamin a77c2f9795 Feat(random): Start random tree generation 2019-05-09 17:47:02 +02:00
Bertrand Benjamin 7097801306 Style: remove some withspace 2019-05-09 17:43:56 +02:00
Bertrand Benjamin 5df0b0c21e Fix: Rewrite lookfornumber to fix - parsing issue 2019-05-08 16:09:00 +02:00
Bertrand Benjamin 7413a76f8d Feat: import Expression from calculus and docstring in random 2019-05-08 14:44:35 +02:00
Bertrand Benjamin f87e6c5727 Refact(core): rename bltin_gene to int_gene 2019-01-07 09:42:43 +01:00
Bertrand Benjamin 94077b6e6c Refact(core): reorganise files for random 2019-01-07 09:38:20 +01:00
Bertrand Benjamin e0334d3c0f Test(core): doctest reject_random and filter_random 2019-01-07 09:24:19 +01:00
Bertrand Benjamin f04e221f70 Feat(Core/API): Random generation methods for numbers 2018-12-22 08:42:31 +01:00
Bertrand Benjamin fd49a6c987 Fix(API): API number can be generate randomly 2018-12-21 17:03:12 +01:00
Bertrand Benjamin ce10db7c32 Refact(Core): Move arithmetic to core from compute 2018-12-21 16:42:05 +01:00
Bertrand Benjamin 827249e944 Fix(Core): str, txt and tex methods for MOmonial with -1 in coef 2018-12-21 12:26:11 +01:00
Bertrand Benjamin 9a68b826a3 Feat(Core): Change default str function for MO 2018-12-21 12:20:13 +01:00
Bertrand Benjamin 092fd3c0a7 Fix(API): organise import and clean API renders 2018-12-21 11:36:40 +01:00
Bertrand Benjamin a2c1174ff3 Fix(Core): Remove obselete try (use to debug) 2018-12-21 11:31:10 +01:00
Bertrand Benjamin f51ffbbe8b Fix(Core): refact MO, clean import and fix renders
Split MO in 2 categories Atoms and Molecules
2018-12-21 11:26:37 +01:00
Bertrand Benjamin 80305671de Feat(Core): Compute with power 2018-12-19 14:17:43 +01:00
Bertrand Benjamin 2551037b65 Fix(Core): Tree.from_str allow - in front of parenthesis 2018-12-17 14:54:48 +01:00
Bertrand Benjamin e7015e282d Merge branch 'dev_tree' of ssh://git.opytex.org:2222/lafrite/Mapytex into dev_tree 2018-12-17 11:23:34 +01:00
Bertrand Benjamin ef371401e6 Feat(API): +*/ for Tokens 2018-12-13 13:45:39 +01:00
Bertrand Benjamin c9fe2ede7d Feat(API): Allow to init tokens from builtin types 2018-12-13 10:44:52 +01:00
Bertrand Benjamin 780772ec2d Feat(API): Expression.from_str tries to build a token when it's
possible
2018-12-13 09:29:44 +01:00
Bertrand Benjamin 8b6ede92c5 Feat(Core): Clarify power and degree for MO 2018-12-07 15:29:34 +01:00
Bertrand Benjamin cad6cd7182 Feat(Core): add coefficients property to MOstr, MOstrPower, MOMonomial 2018-12-07 15:09:39 +01:00
Bertrand Benjamin bcf589c607 Feat(API): factory build every tokens! 2018-12-07 11:23:05 +01:00
Bertrand Benjamin 21cc3b68a3 Fix(core): Add doctest and simplify tree build 2018-12-07 11:21:40 +01:00
Bertrand Benjamin 24b421209f Fix(Core): add exceptions handling in render (not convinced...) 2018-12-07 11:21:00 +01:00
Bertrand Benjamin 79aaa3c5d9 Feat(core): add power attribut to MOPolynomial 2018-12-07 10:47:00 +01:00
Bertrand Benjamin 1c02b57476 Fix(Core): degree method of MOpolynomial 2018-12-07 10:43:41 +01:00
Bertrand Benjamin 5bf23a4793 Feat(API): integrate Token to Expression simplify 2018-12-07 10:27:50 +01:00
Bertrand Benjamin 5938cc7875 Feat(API): throw basis of api maht object (token) 2018-12-07 08:10:15 +01:00
Bertrand Benjamin 5d2611260a Fix(Core): bug with nested tree and parsing parenthesis 2018-11-27 17:11:06 +01:00
Bertrand Benjamin 5cbefa3165 Fix(Core): Add mopoly * other and reorder monoms after * 2018-11-23 12:15:12 +01:00
Bertrand Benjamin 9e4edc09e3 Feat(Core): Multiply 2 MOpolynomial together 2018-11-23 11:59:07 +01:00
Bertrand Benjamin 55c0830671 Feat(Core): Compute with MOpolynomial with all but MOpolynomial 2018-11-23 11:53:37 +01:00
Bertrand Benjamin c8be5c1414 Doc(Core): Add docstring for monomials in MOPolynomial 2018-11-23 11:53:10 +01:00
Bertrand Benjamin 2176cc65df Feat(Core): Multiply for monome is done 2018-11-23 11:24:33 +01:00
Bertrand Benjamin 95634d366b Feat(API): Organise in calculus before computing 2018-11-23 10:06:33 +01:00
Bertrand Benjamin 19d936ee8e Doc(Core): Add doctest in organise_by 2018-11-23 10:06:07 +01:00
Bertrand Benjamin 8f99d1e71e Feat(Core): Add signature to mos 2018-11-23 10:05:36 +01:00
Bertrand Benjamin 8933359945 Refect(Core): Improve error catch in apply and apply_on_last_level 2018-11-21 15:54:07 +01:00
Bertrand Benjamin fe52d9b346 style(API): Put multiple exceptions in one line 2018-11-21 09:51:14 +01:00
Bertrand Benjamin 5ab5314899 Feat(API): In simplify first typing then optimize 2018-11-21 09:43:35 +01:00
Bertrand Benjamin 505d2f1c09 Fix(Core): apply_on_last_level handle NotImplementedError 2018-11-21 09:37:17 +01:00
Bertrand Benjamin f53aa26542 Refact(API): Split simplify into _optimize, _typing, _compute 2018-11-21 08:54:37 +01:00
Bertrand Benjamin b4f9ced8a9 Doc(API): Adapt doctest to new computing order 2018-11-19 15:46:39 +01:00
Bertrand Benjamin 4999e80ec3 Fix(Core): Change append_bot to respect natural computing order 2018-11-19 15:44:02 +01:00
Bertrand Benjamin e37a8a5a2e Fix(API): Rewrite tree apply_on_last_level and reorganise simplify 2018-11-19 12:23:37 +01:00
Bertrand Benjamin 6edf4fe5b4 Fix(MO): Redefine strpower method of MOMonomial for deg 1 case 2018-11-19 12:21:59 +01:00
Bertrand Benjamin 1be3b35e1b Feat(Core): Add compute add for 2 mostr and 2 mostrpower 2018-11-19 12:17:03 +01:00
Bertrand Benjamin 8280640a4f Feat(Core): Add exceptions for add typing 2018-11-19 12:09:54 +01:00
Bertrand Benjamin ecf7e7678f Refact(Tree): Rename type_function to fallback in apply_on_last_level 2018-11-14 16:06:37 +01:00
Bertrand Benjamin eae88d6c4c Fix(Compute/Typing): Add MOpolynomial to MOS list 2018-11-14 16:05:38 +01:00
Bertrand Benjamin 298093d97d Doc(Typing): Typing function return MO 2018-11-14 16:04:53 +01:00
Bertrand Benjamin 3a89bcd24f Doc(Compute): update compute capacities 2018-11-14 11:05:35 +01:00
Bertrand Benjamin c176bb7bc4 Feat(Typing): Write all str related typing functions 2018-11-14 10:04:27 +01:00
Bertrand Benjamin a79ffb0cf9 Feat(Compute): Compute with monomials is done 2018-11-14 09:00:19 +01:00
Bertrand Benjamin b23d83b9da Feat(Compute): Add polynoms with polynoms 2018-11-13 16:19:02 +01:00
Bertrand Benjamin f6f6741398 Fix(MO): MOMonomial variable can be str in __init__ 2018-11-13 15:55:55 +01:00
Bertrand Benjamin 17153dd345 Feat(Compute): Add MOpolynomial with scalar 2018-11-13 14:42:40 +01:00
Bertrand Benjamin a32fd7cbc6 Feat(Compute): Compute MOstr and MOstrPower 2018-11-13 12:12:36 +01:00
Bertrand Benjamin 051d79cb9b Feat(Compute): Start add MO to create MOpolynomial 2018-11-13 11:40:21 +01:00
Bertrand Benjamin eff3ccf9f5 Feat(MO): Initiate MOpolynomial 2018-11-13 10:58:32 +01:00
Bertrand Benjamin abf056ce33 refactor(MO): Separate value and tree in MOs 2018-11-13 09:14:50 +01:00
Bertrand Benjamin 5b9a35081a Feat(MO): Start polynomial 2018-11-12 09:41:39 +01:00
Bertrand Benjamin 9d5b441402 Doc(Compute/typing): Make ComputeError and TypingError more clear 2018-10-10 10:46:58 +02:00
Bertrand Benjamin d2f67a0961 Fix(Render): Ajust "*" visibility with variables 2018-10-10 10:40:40 +02:00
Bertrand Benjamin e6abc208a0 Feat(compute): Multiply strpower and str done
Discover bug with str and * printing
2018-10-10 10:28:38 +02:00
Bertrand Benjamin ddf15e4276 Feat(compute): Write powers of fraction 2018-10-10 10:13:58 +02:00
Bertrand Benjamin 78e781be62 Feat(compute): Start compute with power 2018-10-08 17:57:17 +02:00
Bertrand Benjamin 5e254a26eb Feat(Tree): Add organise for AssocialTree 2018-10-05 16:21:14 +02:00
Bertrand Benjamin 94c117151d Fix(Fraction): debug successive division (1 to MOnumber(1)) 2018-10-05 11:20:08 +02:00
Bertrand Benjamin 2489eccb74 Fix(parsing): Remove spaces in string before parsing 2018-10-05 10:31:51 +02:00
Bertrand Benjamin 9e0a703e98 Feat(Tree): Add exclude_nodes in balance to trees 2018-10-05 08:52:04 +02:00
Bertrand Benjamin 948402755a Feat(Expression): Implement balance in expression 2018-10-04 08:16:59 +02:00
Bertrand Benjamin 89d7baaed2 Doc(Tree): Add solution to doctest in balance 2018-10-04 08:13:20 +02:00
Bertrand Benjamin 42dbfe9c86 Feat(Tree): Write balance Tree method 2018-10-04 08:11:08 +02:00
Bertrand Benjamin 4d75361c9d Feat(Tree): Deep and short branch property for trees 2018-10-01 17:36:12 +02:00
Bertrand Benjamin e9a865a14a Feat(API): use balance before computing to optimize calculus 2018-10-01 16:14:04 +02:00
Bertrand Benjamin 1266a2331b Fix(compute): clean typing multiply 2018-10-01 16:13:13 +02:00