Skip to content

Commit

Permalink
Add the tool data_product_writer with unit test. (#163)
Browse files Browse the repository at this point in the history
* Add the tool data_product_writer with unit test.

* In the test_data_product_writer.py, output the stderr to the screen

* Fix the data size length and add dpspec.json

* Add plotData and arguments to data_product_writer

* Spelling fixes

* Fix more spelling CI errors

* Fix zmq spelling CI error

* Fix issues found by the github bot

* Make tests run with Pytest and in CI

* Removed plotData.py

* pytest passes for test_data_product_writer

* Get the makeFppArray binary to work

* Moved the dpspec.json into the data_product_writer.py

* Cleanup for review comments

* Use current working directory in the test_data_product_writer.py to dump all the json files

* Update spelling

* In pytest use test directory to access files but use current directory to dump json files

* Remove global variables and use a class DataProductWriter

* Pydantic is now a hard dependency

* Fix install to use direct dependencies

---------

Co-authored-by: watney <[email protected]>
Co-authored-by: thomas-bc <[email protected]>
Co-authored-by: M Starch <[email protected]>
  • Loading branch information
4 people authored May 29, 2024
1 parent db2ef3c commit 2c95a45
Show file tree
Hide file tree
Showing 20 changed files with 10,956 additions and 6 deletions.
41 changes: 35 additions & 6 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ backport
basestring
batchmode
baudrate
bcolors
beforeunload
BGR
Biberstein
bibtex
binascii
bitmaps
blockquote
bmp
Expand All @@ -67,8 +69,8 @@ cata
cbl
CCB
CCFF
cdn
Cdioux
cdn
cdxoefg
CFDG
CFDP
Expand All @@ -77,6 +79,7 @@ cgi
Chainable
chartjs
checkbox
CHNG
chrono
classdocs
classmethod
Expand All @@ -96,8 +99,8 @@ combuffer
commandsi
concat
config
configs
configparser
configs
Consolas
cpp
CPython
Expand Down Expand Up @@ -129,9 +132,12 @@ deframed
deframer
deframing
DEPRECATEDLIST
DESER
Deserial
deserialization
deserialize
deserialized
deserializes
deserializing
dest
dexc
Expand Down Expand Up @@ -167,10 +173,14 @@ doxyrules
doxysearch
Doxywizard
doy
dpi
dps
dpspec
dropdown
dropleft
dropright
dropup
Drv
Dsh
dst
dts
Expand All @@ -184,6 +194,7 @@ EINPROGRESS
elif
Emoji
encodable
ENDC
endcond
endian
endif
Expand All @@ -192,6 +203,7 @@ endtime
enqueuing
entrypoint
enum
Enumtype
envvar
errno
errored
Expand All @@ -217,9 +229,11 @@ FFCC
FFFF
fieldset
figcaption
figsize
filemode
fileno
filepath
filesize
fileurl
finditer
Firefox
Expand Down Expand Up @@ -279,6 +293,7 @@ hidecallergraph
hidecallgraph
hideinitializer
hlp
HLTH
Hookimpl
hookspec
hostname
Expand Down Expand Up @@ -362,6 +377,7 @@ libc
libclang
libcrc
libiconv
lineno
Linting
Linux
listbox
Expand All @@ -386,6 +402,7 @@ MAKEVAR
marijnh
matchobj
mathjax
matplotlib
maxcountryman
maxdepth
mcternan
Expand Down Expand Up @@ -414,6 +431,7 @@ myproject
namespace
nargs
navbar
nbytes
Neue
newname
Nify
Expand All @@ -436,6 +454,8 @@ odl
odo
oga
ogg
OKBLUE
OKGREEN
OMG
onabort
onerror
Expand Down Expand Up @@ -468,17 +488,20 @@ php
phtml
pid
pkgutil
pkts
Pkts
plainnat
plantuml
plist
plt
plugin
png
PNGs
popen
posixpath
PREDEF
preds
prm
procs
PROGRAMLISTING
progressbar
Expand All @@ -493,8 +516,10 @@ ptr
px
py
pyc
pydantic
pylint
pypi
pyplot
pyserial
pytest
PYTHONHOME
Expand All @@ -515,6 +540,7 @@ RCE
RCVHWM
RCVTIMEO
RDWR
Readback
readlines
README
readonly
Expand Down Expand Up @@ -547,6 +573,7 @@ rst
rtd
rtf
saba
savefig
scm
scrollable
scrollbar
Expand Down Expand Up @@ -662,8 +689,8 @@ ttl
tts
twbs
txz
typedef'ed
typedef
typedef'ed
typehints
typeof
tzinfo
Expand All @@ -679,6 +706,7 @@ UML
undef
undoc
unicode
UNINIT
unittest
unpause
updown
Expand All @@ -688,7 +716,6 @@ uplinkvue
uploader
upto
uri
URI
url
usec
useconds
Expand Down Expand Up @@ -720,6 +747,7 @@ vname
VRuntime
vue
vw
Watney
wav
webbrowser
webified
Expand All @@ -743,14 +771,15 @@ xcode
xhtml
xhttp
xl
xlabel
xls
xlsx
xmit
xml
xy
yaml
ylabel
yml
zeromq
zlib
zmq
ZMQ
Zmq
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ dependencies = [
"Jinja2>=2.11.3",
"openpyxl>=3.0.10",
"pyserial>=3.5",
"pydantic>=2.6"
]

[project.urls]
Expand All @@ -58,6 +59,7 @@ Repository = "https://github.com/fprime-community/fprime-gds"
[project.scripts]
fprime-cli = "fprime_gds.executables.fprime_cli:main"
fprime-seqgen = "fprime_gds.common.tools.seqgen:main"
fprime-dp-write = "fprime_gds.executables.data_product_writer:main"
fprime-gds = "fprime_gds.executables.run_deployment:main"

# For Pytest fixtures
Expand Down
Loading

0 comments on commit 2c95a45

Please sign in to comment.