79 Commits

Author SHA1 Message Date
Andrei Tumbar
087bfb5673
Recursively check for type imports (#1948)
* Recursively check for type imports

* Fix some Python formating

* Make prm type checks for lax

* More formatting
2023-03-31 14:25:09 -07:00
M Starch
e596a2bcff
auto-generate connect ports option. Fixes #934 (#1786)
* auto-generate connect ports option. Fixes #934

* updating math tutorial

* making unit tests settings from #defines to constants

* fixing missing properties in signal gen
2022-12-21 09:39:04 -08:00
Thibault
5dfe2fda1a
Use identity comparison with singleton (#1501)
* Use identity comparison with singleton

* Replace comparisons w/ PEP8 recommandations

* Fix missing ``:`` in ``if`` statement

* lestarch: missed `is True` clause

* Fix according to peer-review

* rm unneeded parenthesis around if statement

Co-authored-by: M Starch <LeStarch@googlemail.com>
2022-06-27 17:52:51 -07:00
Thibault
34c6fb2de6
Add items to a dictionary/list directly during its definition (#1498)
* Append to dict immediately following its definition

* append list immediately in test_dictgen.py

* append list immediately in pyparsing.py + black formatting

* append list immediately in TestMainWriter.py

* append list immediately in TopoFactory.py + black formatting

* Removal of the old form of dict creation

* black formatting

* lestarch: formatting

Co-authored-by: M Starch <LeStarch@googlemail.com>
2022-06-22 16:33:11 -07:00
M Starch
8db8d0b1ab
Fix/incorrect component name in test stubs (#1520)
* astroesteban: fix incorrect component naming in test template

* astroesteban: undo component header rename

* astroesteban: missing ComponentImpl in header include guard

* lestarch: fixing file naming

* lestarch: reverting eroneous SignalGen reimpl

* lestarch: fixing ut impl generation

* lestarch: formatting

* lestarch: fixes comments

Co-authored-by: Esteban Duran <astroesteban@icloud.com>
2022-06-22 16:01:15 -07:00
Thibault
4e3bd7ce15
Combine values check into tuple (#1497) 2022-06-21 13:58:27 -07:00
Thibault
7fb554d692
Replace dictionaries 📚created with dict() with {} (#1472)
Co-authored-by: M Starch <LeStarch@googlemail.com>
2022-05-27 16:53:48 -07:00
Thibault
c65661927e
Use f-strings for concatenating strings instead of '+' (#1470)
* Use f-strings for concatenating str instead of '+

* misc fstring concatenation

* lestarch: fix python formating

Co-authored-by: M Starch <LeStarch@googlemail.com>
2022-05-27 14:06:52 -07:00
Thibault
e766ca6c74
Replace lists created with list() with [] (#1471)
* Replace lists created with list() with []

* last f-string concat
2022-05-27 14:04:52 -07:00
Sadra Yahyapour
edc2f1c4d3
Using TAB escape sequence instead of pure spaces (#1353)
* using \t instead if raw spaces

* isort observed

* black observed
2022-04-12 12:38:49 -07:00
M Starch
ba867e5770
lestarch: fixing version generation (#1268)
* lestarch: fixing version generation

* lestarch: using both project and framework versions across fprime
2022-02-17 16:01:14 -08:00
Joshua Anderson
c875ab3b17
Resolve merge conflicts merging from devel branch 2021-08-02 12:14:15 -07:00
Ali Muhammad
e2898cdffd
added f-string for formatting for better readability (#779)
* for better readability added f-string

* using builtin function type as variable

* removed extra space

* lestarch: correcting formatting failure

Co-authored-by: M Starch <LeStarch@googlemail.com>
2021-07-02 10:35:00 -07:00
bocchino
ecfef6556c Revise XML Ref topology and autocoder
Get the autocoder to accept hex base IDs
Minor hand tweak to XML to get it working
2021-07-01 14:50:43 -07:00
Matteo
7b85edcad2 Add Black Formatting 2021-06-23 10:20:26 -07:00
M Starch
76626526c6 lestarch: updating fprime to include versioning information 2021-05-28 09:28:13 -07:00
M Starch
e7b53e0159
Merge pull request #462 from Kemyt/refactor_topology_dict_generation
Refactor topology dictionary generation
2021-04-27 12:53:39 -07:00
Aaron-WSL
77f1f02f4e Fixed TypeError after error during code generation 2021-03-26 11:32:50 +00:00
Kemyt
6ff1949f85 Refactor topology dictionary generation
It gets rid of a lot of code duplication and unifies the way
codegen.py and gds_dictgen generate topology dictionaries.
2021-03-12 22:07:04 +01:00
Josh Soref
126ab639b5 spelling: initialized
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-03-07 14:48:31 -05:00
Josh Soref
518512ddc7 spelling: environment
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-03-07 14:48:29 -05:00
Kemyt
f6daa59546 Move enum duplicates removing to separate file
Functionality to remove duplicates from list of enums was moved to
separate file to allow both gds_dictgen.py and codegen.py to use it
without duplicating code. Also a few typos were spotted and fixed.
2021-03-05 21:45:08 +01:00
Michael D Starch
4f5aeabb97 mstarch: fixes autocoder to allow component imports from other directories 2020-12-09 22:01:19 -08:00
Michael D Starch
113bf26fe1 mstarch: cleaning up issues detected by LGTM 2020-11-14 14:59:41 -08:00
Michael D Starch
6a9beaebfa mstarch: fixing the docker container user for external runs 2020-10-21 20:09:09 -07:00
Michael D Starch
2d5d68f664 mstarch: black formatting and lint fixes 2020-10-12 09:43:49 -07:00
Michael D Starch
9f4da01e7d mstarch: merging in NASA PRs with minor corrections 2020-10-08 16:24:38 -07:00
M Starch
c512c35b67
Merge pull request #210 from AaronMcDaniel/bugfix/codegen
fixed key checks to reference correct dictionary
2020-10-08 16:19:33 -07:00
Michael D Starch
f0511eff14 mstarch: finishing SignalGen example 2020-10-05 17:18:11 -07:00
Aaron McDaniel
531bb74994 fixed key checks to reference correct dictionary 2020-09-15 21:37:05 -04:00
Michael D Starch
de078c0ab9 Merge remote-tracking branch 'upstream/devel' into prerelease/release-1.5 2020-08-13 12:50:41 -07:00
Michael D Starch
04355f929e mstarch: removing commented out AMPCS code and ampcs flags from codegen.py 2020-08-05 17:02:01 -07:00
Michael D Starch
bc3e7e5055 mstarch: merging latest devel 2020-08-05 15:34:57 -07:00
Michael D Starch
a0983a7e51 mstarch: merging in semmel fixes 2020-08-05 12:35:32 -07:00
jhdeerin
6f818d20ff Fixed a misspelled attribute in codegen/gds_dictgen (closes #530) 2020-08-04 09:43:02 -04:00
Michael D Starch
a00adc8a93 mstarch: reformatted code 2020-07-31 10:28:26 -07:00
Michael D Starch
c6e7ed7188 mstarch: pre-release internal/external merge 2020-07-31 10:25:39 -07:00
Michael D Starch
40b9881b19 mstarch: merging in upstream/devel and reformatting with black 2020-07-27 10:20:24 -07:00
Charles Sommer
7fb1062cf4 removed copy/paste of unused variable 2020-07-21 00:14:13 -07:00
Charles Sommer
7ff71be7c6 adding included enum parsing for topology dictionary 2020-07-20 19:37:19 -07:00
Michael D Starch
ccae6fc2e0 mstarch: removing type == type in Autocoder 2020-07-20 17:34:35 -07:00
Michael D Starch
56a1d44160 mstarch: sorting imports automatically 2020-07-19 11:26:10 -07:00
Michael D Starch
2729bb7357 mstarch: fixing None comparisons 2020-07-16 23:56:53 -07:00
Michael D Starch
f81a81b19d mstarch: fixable lint warnings 2020-07-16 23:07:38 -07:00
Michael D Starch
9e9487db8e mstarch: fixing linting errors 2020-07-16 22:43:15 -07:00
Michael D Starch
8a127c2e1d mstarch: correcting use of os.sep 2020-07-16 15:57:27 -07:00
Michael D Starch
bf7557c517 mstarch: black autoformat on Autocoder 2020-07-16 14:04:03 -07:00
Michael D Starch
3092e4ff26 mstarch: pyupgrade auto py3 reformatting 2020-07-16 14:02:32 -07:00
Michael D Starch
3f0ec892a3 mstarch: autoflake unused symbol removal 2020-07-16 13:52:15 -07:00
Michael D Starch
271c516a5e mstarch: ran black formatting 2020-07-14 15:34:30 -07:00