Skip to content

Commit

Permalink
Merge pull request #1183 from anarkiwi/uni
Browse files Browse the repository at this point in the history
Use uniform random complex test data.
  • Loading branch information
anarkiwi authored Mar 3, 2024
2 parents 1dcd8c9 + 1699caa commit 3aa9402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_offline_consistent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TESTFILE=gamutrf_recording_ettus__gain40_1_10000000Hz_1024000sps.s16
rm -rf "$TMPDIR/input"
mkdir "$TMPDIR/input"
export FULLTMP=$TMPDIR/input/$TESTFILE
python -c "import numpy ; numpy.random.uniform(-16384,16383,(20480000,)).astype(numpy.int16).tofile(\"$FULLTMP\")"
python -c "import numpy as np ; x = (np.random.uniform(-16384,16383,(20480000,)) + 1.j * np.random.uniform(-16384,16383,(20480000,))).tobytes() ; np.frombuffer(x, np.float64).astype(np.int16).tofile(\"$FULLTMP\")"

rm -rf "$TMPDIR/ref"
mkdir "$TMPDIR/ref"
Expand Down

0 comments on commit 3aa9402

Please sign in to comment.