iqz 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- iqz-0.1.0/Cargo.lock +311 -0
- iqz-0.1.0/Cargo.toml +30 -0
- iqz-0.1.0/LICENSE +21 -0
- iqz-0.1.0/PKG-INFO +63 -0
- iqz-0.1.0/README.md +16 -0
- iqz-0.1.0/pyproject.toml +106 -0
- iqz-0.1.0/rust/lib.rs +223 -0
- iqz-0.1.0/src/iqz/__init__.py +23 -0
- iqz-0.1.0/src/iqz/_api.py +263 -0
- iqz-0.1.0/src/iqz/_format.py +70 -0
- iqz-0.1.0/src/iqz/_native.pyi +6 -0
- iqz-0.1.0/src/iqz/_numpy.py +57 -0
- iqz-0.1.0/src/iqz/_stream.py +300 -0
- iqz-0.1.0/src/iqz/py.typed +0 -0
- iqz-0.1.0/tests/conftest.py +29 -0
- iqz-0.1.0/tests/data/iq1m_outdoor.iqz +0 -0
- iqz-0.1.0/tests/data/manifest.json +55 -0
- iqz-0.1.0/tests/data/synthetic_int16_extremes.iqz +0 -0
- iqz-0.1.0/tests/data/tartan_outdoor.iqz +0 -0
- iqz-0.1.0/tests/test_codec.py +200 -0
- iqz-0.1.0/tests/test_stream.py +213 -0
- iqz-0.1.0/tests/test_vectors.py +56 -0
iqz-0.1.0/Cargo.lock
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "cc"
|
|
13
|
+
version = "1.7.0"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "50a649af8a827553c29fb0cb4bd4a6f1a0dd695bd3232b9bc98bd9c8a3ffbb8b"
|
|
16
|
+
dependencies = [
|
|
17
|
+
"find-msvc-tools",
|
|
18
|
+
"jobserver",
|
|
19
|
+
"libc",
|
|
20
|
+
"shlex",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "cfg-if"
|
|
25
|
+
version = "1.0.5"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "find-msvc-tools"
|
|
31
|
+
version = "0.1.14"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484"
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "getrandom"
|
|
37
|
+
version = "0.4.3"
|
|
38
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
+
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
|
40
|
+
dependencies = [
|
|
41
|
+
"cfg-if",
|
|
42
|
+
"libc",
|
|
43
|
+
"r-efi",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[[package]]
|
|
47
|
+
name = "heck"
|
|
48
|
+
version = "0.5.0"
|
|
49
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
50
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
51
|
+
|
|
52
|
+
[[package]]
|
|
53
|
+
name = "iqz"
|
|
54
|
+
version = "0.1.0"
|
|
55
|
+
dependencies = [
|
|
56
|
+
"numpy",
|
|
57
|
+
"pyo3",
|
|
58
|
+
"zstd-safe",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "jobserver"
|
|
63
|
+
version = "0.1.35"
|
|
64
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
+
checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"
|
|
66
|
+
dependencies = [
|
|
67
|
+
"getrandom",
|
|
68
|
+
"libc",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[[package]]
|
|
72
|
+
name = "libc"
|
|
73
|
+
version = "0.2.190"
|
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
75
|
+
checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
|
|
76
|
+
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "matrixmultiply"
|
|
79
|
+
version = "0.3.11"
|
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
+
checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
|
|
82
|
+
dependencies = [
|
|
83
|
+
"autocfg",
|
|
84
|
+
"rawpointer",
|
|
85
|
+
]
|
|
86
|
+
|
|
87
|
+
[[package]]
|
|
88
|
+
name = "ndarray"
|
|
89
|
+
version = "0.17.2"
|
|
90
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
91
|
+
checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
|
|
92
|
+
dependencies = [
|
|
93
|
+
"matrixmultiply",
|
|
94
|
+
"num-complex",
|
|
95
|
+
"num-integer",
|
|
96
|
+
"num-traits",
|
|
97
|
+
"portable-atomic",
|
|
98
|
+
"portable-atomic-util",
|
|
99
|
+
"rawpointer",
|
|
100
|
+
]
|
|
101
|
+
|
|
102
|
+
[[package]]
|
|
103
|
+
name = "num-complex"
|
|
104
|
+
version = "0.4.6"
|
|
105
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
106
|
+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
|
|
107
|
+
dependencies = [
|
|
108
|
+
"num-traits",
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
[[package]]
|
|
112
|
+
name = "num-integer"
|
|
113
|
+
version = "0.1.47"
|
|
114
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
115
|
+
checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
|
|
116
|
+
dependencies = [
|
|
117
|
+
"num-traits",
|
|
118
|
+
]
|
|
119
|
+
|
|
120
|
+
[[package]]
|
|
121
|
+
name = "num-traits"
|
|
122
|
+
version = "0.2.19"
|
|
123
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
124
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
125
|
+
dependencies = [
|
|
126
|
+
"autocfg",
|
|
127
|
+
]
|
|
128
|
+
|
|
129
|
+
[[package]]
|
|
130
|
+
name = "numpy"
|
|
131
|
+
version = "0.29.0"
|
|
132
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
133
|
+
checksum = "6a5b15d63a5ff39e378daed0e1340d3a5964703ea9712eb09a0dc66fade996f4"
|
|
134
|
+
dependencies = [
|
|
135
|
+
"libc",
|
|
136
|
+
"ndarray",
|
|
137
|
+
"num-complex",
|
|
138
|
+
"num-integer",
|
|
139
|
+
"num-traits",
|
|
140
|
+
"pyo3",
|
|
141
|
+
"pyo3-build-config",
|
|
142
|
+
"rustc-hash",
|
|
143
|
+
]
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "once_cell"
|
|
147
|
+
version = "1.21.4"
|
|
148
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
149
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
150
|
+
|
|
151
|
+
[[package]]
|
|
152
|
+
name = "pkg-config"
|
|
153
|
+
version = "0.3.34"
|
|
154
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
155
|
+
checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "portable-atomic"
|
|
159
|
+
version = "1.15.0"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
162
|
+
|
|
163
|
+
[[package]]
|
|
164
|
+
name = "portable-atomic-util"
|
|
165
|
+
version = "0.2.8"
|
|
166
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
+
checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
|
|
168
|
+
dependencies = [
|
|
169
|
+
"portable-atomic",
|
|
170
|
+
]
|
|
171
|
+
|
|
172
|
+
[[package]]
|
|
173
|
+
name = "proc-macro2"
|
|
174
|
+
version = "1.0.107"
|
|
175
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
176
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
177
|
+
dependencies = [
|
|
178
|
+
"unicode-ident",
|
|
179
|
+
]
|
|
180
|
+
|
|
181
|
+
[[package]]
|
|
182
|
+
name = "pyo3"
|
|
183
|
+
version = "0.29.3"
|
|
184
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
185
|
+
checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655"
|
|
186
|
+
dependencies = [
|
|
187
|
+
"libc",
|
|
188
|
+
"once_cell",
|
|
189
|
+
"portable-atomic",
|
|
190
|
+
"pyo3-build-config",
|
|
191
|
+
"pyo3-ffi",
|
|
192
|
+
"pyo3-macros",
|
|
193
|
+
]
|
|
194
|
+
|
|
195
|
+
[[package]]
|
|
196
|
+
name = "pyo3-build-config"
|
|
197
|
+
version = "0.29.3"
|
|
198
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
199
|
+
checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb"
|
|
200
|
+
dependencies = [
|
|
201
|
+
"target-lexicon",
|
|
202
|
+
]
|
|
203
|
+
|
|
204
|
+
[[package]]
|
|
205
|
+
name = "pyo3-ffi"
|
|
206
|
+
version = "0.29.3"
|
|
207
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
208
|
+
checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330"
|
|
209
|
+
dependencies = [
|
|
210
|
+
"libc",
|
|
211
|
+
"pyo3-build-config",
|
|
212
|
+
]
|
|
213
|
+
|
|
214
|
+
[[package]]
|
|
215
|
+
name = "pyo3-macros"
|
|
216
|
+
version = "0.29.3"
|
|
217
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
218
|
+
checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6"
|
|
219
|
+
dependencies = [
|
|
220
|
+
"proc-macro2",
|
|
221
|
+
"pyo3-macros-backend",
|
|
222
|
+
"quote",
|
|
223
|
+
"syn",
|
|
224
|
+
]
|
|
225
|
+
|
|
226
|
+
[[package]]
|
|
227
|
+
name = "pyo3-macros-backend"
|
|
228
|
+
version = "0.29.3"
|
|
229
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
+
checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3"
|
|
231
|
+
dependencies = [
|
|
232
|
+
"heck",
|
|
233
|
+
"proc-macro2",
|
|
234
|
+
"quote",
|
|
235
|
+
"syn",
|
|
236
|
+
]
|
|
237
|
+
|
|
238
|
+
[[package]]
|
|
239
|
+
name = "quote"
|
|
240
|
+
version = "1.0.47"
|
|
241
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
243
|
+
dependencies = [
|
|
244
|
+
"proc-macro2",
|
|
245
|
+
]
|
|
246
|
+
|
|
247
|
+
[[package]]
|
|
248
|
+
name = "r-efi"
|
|
249
|
+
version = "6.0.0"
|
|
250
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
251
|
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
252
|
+
|
|
253
|
+
[[package]]
|
|
254
|
+
name = "rawpointer"
|
|
255
|
+
version = "0.2.1"
|
|
256
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
257
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
258
|
+
|
|
259
|
+
[[package]]
|
|
260
|
+
name = "rustc-hash"
|
|
261
|
+
version = "2.1.3"
|
|
262
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
263
|
+
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
|
|
264
|
+
|
|
265
|
+
[[package]]
|
|
266
|
+
name = "shlex"
|
|
267
|
+
version = "2.0.1"
|
|
268
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
269
|
+
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
|
270
|
+
|
|
271
|
+
[[package]]
|
|
272
|
+
name = "syn"
|
|
273
|
+
version = "2.0.119"
|
|
274
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
275
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
276
|
+
dependencies = [
|
|
277
|
+
"proc-macro2",
|
|
278
|
+
"quote",
|
|
279
|
+
"unicode-ident",
|
|
280
|
+
]
|
|
281
|
+
|
|
282
|
+
[[package]]
|
|
283
|
+
name = "target-lexicon"
|
|
284
|
+
version = "0.13.5"
|
|
285
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
286
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "unicode-ident"
|
|
290
|
+
version = "1.0.26"
|
|
291
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
+
checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "zstd-safe"
|
|
296
|
+
version = "7.3.0"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "64d80649ab6db9d9f6f9c80a40becd948eda4714a0a5ac8c4d157a32231c7882"
|
|
299
|
+
dependencies = [
|
|
300
|
+
"zstd-sys",
|
|
301
|
+
]
|
|
302
|
+
|
|
303
|
+
[[package]]
|
|
304
|
+
name = "zstd-sys"
|
|
305
|
+
version = "2.1.1+zstd.1.5.7"
|
|
306
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
307
|
+
checksum = "aeec9eaf2dffbbd09201e23bd0ffcbaa33bb8e9266a10734fd7ed90a85eca078"
|
|
308
|
+
dependencies = [
|
|
309
|
+
"cc",
|
|
310
|
+
"pkg-config",
|
|
311
|
+
]
|
iqz-0.1.0/Cargo.toml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "iqz"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
license = "MIT"
|
|
6
|
+
publish = false
|
|
7
|
+
# Files in the source distribution (maturin builds the sdist from this list,
|
|
8
|
+
# and adds the Python sources, pyproject.toml, README, and LICENSE).
|
|
9
|
+
include = [
|
|
10
|
+
"/Cargo.toml",
|
|
11
|
+
"/Cargo.lock",
|
|
12
|
+
"/rust/**/*.rs",
|
|
13
|
+
"/tests/**/*.py",
|
|
14
|
+
"/tests/data/*",
|
|
15
|
+
]
|
|
16
|
+
readme = "README.md"
|
|
17
|
+
|
|
18
|
+
[lib]
|
|
19
|
+
name = "_native"
|
|
20
|
+
crate-type = ["cdylib"]
|
|
21
|
+
path = "rust/lib.rs"
|
|
22
|
+
|
|
23
|
+
[dependencies]
|
|
24
|
+
numpy = "0.29"
|
|
25
|
+
pyo3 = { version = "0.29", features = ["abi3-py310"] }
|
|
26
|
+
zstd-safe = { version = "7", features = ["std"] }
|
|
27
|
+
|
|
28
|
+
[profile.release]
|
|
29
|
+
codegen-units = 1
|
|
30
|
+
lto = "fat"
|
iqz-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RadarML Authors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
iqz-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: iqz
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Intended Audience :: Science/Research
|
|
6
|
+
Classifier: Operating System :: OS Independent
|
|
7
|
+
Classifier: Programming Language :: Rust
|
|
8
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering
|
|
15
|
+
Classifier: Topic :: System :: Archiving :: Compression
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Requires-Dist: numpy>=1.21
|
|
18
|
+
Requires-Dist: zstandard>=0.22
|
|
19
|
+
Requires-Dist: jaxtyping>=0.3.2
|
|
20
|
+
Requires-Dist: typing-extensions>=4.6 ; python_full_version < '3.12'
|
|
21
|
+
Requires-Dist: pre-commit>=4.0.0 ; extra == 'dev'
|
|
22
|
+
Requires-Dist: pytest>=8.0.0 ; extra == 'dev'
|
|
23
|
+
Requires-Dist: coverage ; extra == 'dev'
|
|
24
|
+
Requires-Dist: pytest-cov ; extra == 'dev'
|
|
25
|
+
Requires-Dist: pyright>=1.0.0 ; extra == 'dev'
|
|
26
|
+
Requires-Dist: ruff>=0.11.0 ; extra == 'dev'
|
|
27
|
+
Requires-Dist: mkdocs==1.6.* ; extra == 'docs'
|
|
28
|
+
Requires-Dist: mkdocs-material==9.6.* ; extra == 'docs'
|
|
29
|
+
Requires-Dist: mkdocstrings-python-xref==1.16.3 ; extra == 'docs'
|
|
30
|
+
Requires-Dist: mkdocstrings-python==1.16.6 ; extra == 'docs'
|
|
31
|
+
Requires-Dist: griffe==1.8.0 ; extra == 'docs'
|
|
32
|
+
Requires-Dist: mkdocs-llmstxt>=0.5.0 ; extra == 'docs'
|
|
33
|
+
Requires-Dist: ruff>=0.11.0 ; extra == 'docs'
|
|
34
|
+
Provides-Extra: dev
|
|
35
|
+
Provides-Extra: docs
|
|
36
|
+
License-File: LICENSE
|
|
37
|
+
Summary: A simple lossless compression codec for I/Q radar data.
|
|
38
|
+
Keywords: radar,mmwave,fmcw,iq,compression,lossless,zstd
|
|
39
|
+
Author-email: Tianshu Huang <tianshu2@andrew.cmu.edu>
|
|
40
|
+
License-Expression: MIT
|
|
41
|
+
Requires-Python: >=3.10
|
|
42
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
43
|
+
Project-URL: Documentation, https://radarml.github.io/iqz
|
|
44
|
+
Project-URL: Homepage, https://github.com/RadarML/iqz
|
|
45
|
+
Project-URL: Issues, https://github.com/RadarML/iqz/issues
|
|
46
|
+
|
|
47
|
+
# IQZ: Lossless I/Q Radar Compression
|
|
48
|
+
|
|
49
|
+
A simple lossless compression codec for I/Q radar data: subtract each chunk's mean chirp, zigzag and byte-shuffle the residuals, and compress with zstd. It gets 2.31x on Tartan\* and 1.84x on I/Q-1M (vs. 1.62x and 1.43x for zstd alone), and decodes at ~3 GB/s per core with the native (Rust) backend.
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
pip install iqz
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
import iqz
|
|
57
|
+
|
|
58
|
+
blob = iqz.encode(x) # x: (64, 3, 4, 1024) int16
|
|
59
|
+
y = iqz.decode(blob, shape=(3, 4, 1024)) # shape excludes the chirps axis
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
See the [documentation](https://radarml.github.io/iqz) for details.
|
|
63
|
+
|
iqz-0.1.0/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# IQZ: Lossless I/Q Radar Compression
|
|
2
|
+
|
|
3
|
+
A simple lossless compression codec for I/Q radar data: subtract each chunk's mean chirp, zigzag and byte-shuffle the residuals, and compress with zstd. It gets 2.31x on Tartan\* and 1.84x on I/Q-1M (vs. 1.62x and 1.43x for zstd alone), and decodes at ~3 GB/s per core with the native (Rust) backend.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pip install iqz
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```python
|
|
10
|
+
import iqz
|
|
11
|
+
|
|
12
|
+
blob = iqz.encode(x) # x: (64, 3, 4, 1024) int16
|
|
13
|
+
y = iqz.decode(blob, shape=(3, 4, 1024)) # shape excludes the chirps axis
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
See the [documentation](https://radarml.github.io/iqz) for details.
|
iqz-0.1.0/pyproject.toml
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["maturin >= 1.7, < 2"]
|
|
3
|
+
build-backend = "maturin"
|
|
4
|
+
|
|
5
|
+
[tool.maturin]
|
|
6
|
+
python-source = "src"
|
|
7
|
+
module-name = "iqz._native"
|
|
8
|
+
features = ["pyo3/extension-module"]
|
|
9
|
+
|
|
10
|
+
[tool.uv]
|
|
11
|
+
cache-keys = [
|
|
12
|
+
{ file = "pyproject.toml" },
|
|
13
|
+
{ file = "Cargo.toml" },
|
|
14
|
+
{ file = "rust/**/*.rs" },
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
[project]
|
|
18
|
+
name = "iqz"
|
|
19
|
+
version = "0.1.0"
|
|
20
|
+
authors = [
|
|
21
|
+
{ name="Tianshu Huang", email="tianshu2@andrew.cmu.edu" },
|
|
22
|
+
]
|
|
23
|
+
description = "A simple lossless compression codec for I/Q radar data."
|
|
24
|
+
readme = "README.md"
|
|
25
|
+
keywords = ["radar", "mmwave", "fmcw", "iq", "compression", "lossless", "zstd"]
|
|
26
|
+
requires-python = ">=3.10"
|
|
27
|
+
license = "MIT"
|
|
28
|
+
license-files = ["LICEN[CS]E*"]
|
|
29
|
+
classifiers = [
|
|
30
|
+
"Development Status :: 4 - Beta",
|
|
31
|
+
"Intended Audience :: Science/Research",
|
|
32
|
+
"Operating System :: OS Independent",
|
|
33
|
+
"Programming Language :: Rust",
|
|
34
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
35
|
+
"Programming Language :: Python :: 3.10",
|
|
36
|
+
"Programming Language :: Python :: 3.11",
|
|
37
|
+
"Programming Language :: Python :: 3.12",
|
|
38
|
+
"Programming Language :: Python :: 3.13",
|
|
39
|
+
"Programming Language :: Python :: 3.14",
|
|
40
|
+
"Topic :: Scientific/Engineering",
|
|
41
|
+
"Topic :: System :: Archiving :: Compression",
|
|
42
|
+
"Typing :: Typed",
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
dependencies = [
|
|
46
|
+
"numpy >= 1.21",
|
|
47
|
+
"zstandard >= 0.22",
|
|
48
|
+
"jaxtyping >= 0.3.2",
|
|
49
|
+
"typing_extensions >= 4.6; python_version < '3.12'",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[project.optional-dependencies]
|
|
53
|
+
dev = [
|
|
54
|
+
"pre-commit >= 4.0.0",
|
|
55
|
+
"pytest >= 8.0.0",
|
|
56
|
+
"coverage",
|
|
57
|
+
"pytest-cov",
|
|
58
|
+
"pyright >= 1.0.0",
|
|
59
|
+
"ruff >= 0.11.0"
|
|
60
|
+
]
|
|
61
|
+
docs = [
|
|
62
|
+
"mkdocs == 1.6.*",
|
|
63
|
+
"mkdocs-material == 9.6.*",
|
|
64
|
+
"mkdocstrings-python-xref == 1.16.3",
|
|
65
|
+
"mkdocstrings-python == 1.16.6",
|
|
66
|
+
"griffe == 1.8.0",
|
|
67
|
+
"mkdocs-llmstxt >= 0.5.0",
|
|
68
|
+
"ruff >= 0.11.0",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[project.urls]
|
|
72
|
+
Homepage = "https://github.com/RadarML/iqz"
|
|
73
|
+
Documentation = "https://radarml.github.io/iqz"
|
|
74
|
+
Issues = "https://github.com/RadarML/iqz/issues"
|
|
75
|
+
|
|
76
|
+
[tool.ruff]
|
|
77
|
+
line-length = 100
|
|
78
|
+
indent-width = 4
|
|
79
|
+
|
|
80
|
+
[tool.ruff.lint]
|
|
81
|
+
select = [
|
|
82
|
+
"E", "F", "W", "N", "I", "D", "NPY"
|
|
83
|
+
]
|
|
84
|
+
ignore = [
|
|
85
|
+
"D102", # Inheriting docstrings is allowed
|
|
86
|
+
"D107", # Initializer goes in the class docstring
|
|
87
|
+
"D401", # "Imperative mood" NLP doesn't always make sense
|
|
88
|
+
"D413", # No blank lines after section is preferred by mkdocstrings
|
|
89
|
+
"N806", # We do math, so capitalization should be allowed
|
|
90
|
+
"E402", # Module level imports sometimes need to occur after configuration
|
|
91
|
+
"F722", # Jaxtyping annotations confuse ruff
|
|
92
|
+
"F821",
|
|
93
|
+
|
|
94
|
+
# Must pick one...
|
|
95
|
+
"D213", # Pick 'multi-line-summary-first-line'.
|
|
96
|
+
"D203", # Pick `no-blank-line-before-class`.
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
[tool.coverage.report]
|
|
100
|
+
exclude_also = [
|
|
101
|
+
'^\s*\.\.\.\s*$',
|
|
102
|
+
'def __repr__',
|
|
103
|
+
'if __name__ == .__main__.:',
|
|
104
|
+
'class .*\bProtocol\):',
|
|
105
|
+
'raise NotImplementedError',
|
|
106
|
+
]
|