Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ccsdspy/packet_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ def to_file(self, file, pkt_type, apid, sec_header_flag, seq_flag, data, seq_cou
apid : uint
For the CCSDS primary header, the Application process identifier (0 to 2047)
sec_header_flag : uint
For the CCSDS primary header, identicates the presence or absence of a secondary header. Set to 1 if present.
For the CCSDS primary header, indicates the presence or absence of a secondary header. Set to 1 if present.
seq_flag : uint
For the CCSDS primary header, tet to 1 if the data is a continuation segment, set to 0 if it contains the first or only segment of data.
For the CCSDS primary header, set to 1 if the data is a continuation segment, set to 0 if it contains the first or only segment of data.
seq_count : uint
For the CCSDS primary header, the start sequence number for the packets
data : dict
Expand Down Expand Up @@ -447,9 +447,9 @@ def to_file(self, file, pkt_type, apid, sec_header_flag, seq_flag, data):
apid : uint
For the CCSDS primary header, the Application process identifier (0 to 2047)
sec_header_flag : uint
For the CCSDS primary header, identicates the presence or absence of a secondary header. Set to 1 if present.
For the CCSDS primary header, indicates the presence or absence of a secondary header. Set to 1 if present.
seq_flag : uint
For the CCSDS primary header, tet to 1 if the data is a continuation segment, set to 0 if it contains the first or only segment of data.
For the CCSDS primary header, set to 1 if the data is a continuation segment, set to 0 if it contains the first or only segment of data.
seq_count : uint
For the CCSDS primary header, the start sequence number for the packets
data : dict
Expand Down
4 changes: 3 additions & 1 deletion docs/user-guide/synthetic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ First define the packet,
.. code-block:: python

import ccsdspy
from ccsdspy import PacketField
from ccsdspy import PacketField, PacketArray

pkt = ccsdspy.FixedLength([
PacketField(name="DATAU", data_type="uint", bit_length=32),
Expand All @@ -43,6 +43,8 @@ Once you've done that you'll have to define a dictionary whose keys are the pack

.. code-block:: python

import numpy as np

num_packets = 1000
datau = np.arange(0, num_packets, dtype=np.uint32)
datai = np.arange(1, num_packets + 1, dtype=np.int16)
Expand Down
Loading