You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fromfile() now autodetects SigMF, BLUE, & WAV formats automatically
* Converters now support conversion to non-conforming dataset without
writing datafiles back to disk
* Add utils.get_magic_bytes() for autodetection purposes
* split tests for converters into separate files
* Validated implementation against lots of files beyond nonsigmf-examples repo
* Updated converter documentation
* Added slightly more to README
* Drop support for float WAV files; tricky to support NCD
* Fix bug in sigmffile._count_samples for NCD files
* Fig bug in read_samples when using some NCD files with header & trailing bytes
Copy file name to clipboardExpand all lines: README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,26 @@ freely under the terms GNU Lesser GPL v3 License.
12
12
13
13
This module follows the SigMF specification [html](https://sigmf.org/)/[pdf](https://sigmf.github.io/SigMF/sigmf-spec.pdf) from the [spec repository](https://github.com/sigmf/SigMF).
14
14
15
-
To install the latest PyPI release, install from pip:
15
+
### Install Latest
16
16
17
17
```bash
18
18
pip install sigmf
19
19
```
20
20
21
-
**[Please visit the documentation for examples & more info.](https://sigmf.readthedocs.io/en/latest/)**
21
+
### Read SigMF
22
+
23
+
```python
24
+
import sigmf
25
+
26
+
# read SigMF recording
27
+
meta = sigmf.fromfile("recording.sigmf-meta")
28
+
samples = meta[0:1024] # get first 1024 samples
29
+
30
+
# fromfile() also supports BLUE and WAV files via auto-detection
31
+
meta = sigmf.fromfile("recording.cdif") # BLUE file
32
+
meta = sigmf.fromfile("recording.wav") # WAV file
33
+
```
34
+
35
+
### Full API & Docs
36
+
37
+
**[Please visit our documentation for more info.](https://sigmf.readthedocs.io/en/latest/)**
0 commit comments