Skip to content

Commit

Permalink
install latest gnuradio
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Dec 20, 2023
1 parent 99a654c commit 96f3264
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
g++ \
gcc \
git \
gnuradio-dev \
libboost-all-dev \
libev-dev \
libopencv-dev \
Expand All @@ -41,6 +40,10 @@ jobs:
uhd-host \
wget \
&& grep -h 'git clone' docker/*|grep -v pytorch|sed -E 's/RUN\s+git clone\s+//g'|sort|uniq|xargs -L1 git clone
- name: install gnuradio
run: |
sudo add-apt-repository ppa:gnuradio/gnuradio-releases && sudo apt-get update && \
sudo apt-get install -y --no-install-recommends gnuradio-dev python3-packaging
- name: Install dependencies
run: |
for repodir in flatbuffers json libsigmf gr-iqtlabs ; do \
Expand Down
6 changes: 2 additions & 4 deletions gamutrf/grsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ def work(self, input_items, output_items):
return len(samples)


def get_throttle(samp_rate, rate=0.1):
return blocks.throttle(
gr.sizeof_gr_complex, samp_rate, True, max(int(rate * samp_rate), 1)
)
def get_throttle(samp_rate, items=1024):
return blocks.throttle(gr.sizeof_gr_complex, samp_rate, True, items)


def get_source(
Expand Down

0 comments on commit 96f3264

Please sign in to comment.