source
Arrakis source element.
ArrakisSource
dataclass
¶
ArrakisSource()
Bases: TSResourceSource
Source element that streams channel data from Arrakis.
Source pads should be named after the channel they will stream from Arrakis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
float | None
|
Start time of stream in GPS seconds, or "now" if None. |
required |
duration
|
float | None
|
Duration of stream in seconds, or endless stream if None. |
required |
end
|
float | None
|
End time of stream in GPS seconds. Cannot be combined with duration. |
required |
in_queue_timeout
|
int
|
How long to wait for a block from the Arrakis server before timing out with an error. |
60
|
worker_process ¶
worker_process(context, *, source_pad_names, srcs, start, end)
Worker process method for streaming data from Arrakis.
This method is called repeatedly by the TSResourceSource framework. Each call should process one block of data and return.
Source code in sgn_arrakis/source.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |