-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the ability to create simulated packets #50
Comments
This issue is being worked in the packet_encoding branch. Basic functionality is already implemented and ready to be tested by anyone interested! |
@ddasilva , @ehsteve , I've seen this ticket is still open (but developed) and I was wondering if we could as well think of generating a documentation for the CCSDS packets from the ccsdspy objects. If I refer to the CCSDS packet documentation I am using, the only missing bit for simple packets would be the 'description' , of the fields. For example:
For the converters it might be more complicated to document them from the code but we could re-use the doc-strings. Having the documentation and the test files generated from a single reference, as code, would avoid discrepancies between them. That would also allow to manage the reference documentation (as code) in configuration, which is easier to track changes. Did you have thoughts on that already ? |
I'm open to this-- it really has no impact to existing users and it would be pretty nice to generate pretty HTML. Having the definitions expressed in python might not be the best authoritative source for the packet definitions in a large project, but if they're already in Python its is a nice bonus feature. What do you think @ehsteve ? |
We also may try out this simulated packet creation to test our pipeline soon. |
It is often very helpful to be able to create simulated packets especially in the early phases of development or for testing. The packet types
FixedLength
andVariableLength
could be expanded to include a function (to_file
?) to output binary data if given arrays of data to fill in the packet fields.where
dict
includes the packet field names as indices and numpy arrays for the values. The data dict should mirror the data dict that is provided by parsing the file.The text was updated successfully, but these errors were encountered: