Skip to content
Permalink
Browse files

Make soapy_power compatible with latest simplesoapy version

  • Loading branch information...
xmikos committed Apr 26, 2017
1 parent 35adfbb commit 46e12659b8d08af764dc09a1f31b0e85a68f808f
Showing with 12 additions and 6 deletions.
  1. +2 −2 PKGBUILD
  2. +1 −1 setup.py
  3. +7 −1 soapypower/__main__.py
  4. +1 −1 soapypower/power.py
  5. +1 −1 soapypower/version.py
@@ -1,12 +1,12 @@
# Maintainer: Michal Krenek (Mikos) <m.krenek@gmail.com>
pkgname=soapy_power
pkgver=1.6.0
pkgver=1.6.1
pkgrel=1
pkgdesc="Obtain power spectrum from SoapySDR devices (RTL-SDR, Airspy, SDRplay, HackRF, bladeRF, USRP, LimeSDR, etc.)"
arch=('any')
url="https://github.com/xmikos/soapy_power"
license=('MIT')
depends=('python' 'python-numpy' 'simplesoapy>=1.4.0' 'simplespectral')
depends=('python' 'python-numpy' 'simplesoapy>=1.5.0' 'simplespectral')
makedepends=('python-setuptools')
optdepends=(
'soapyrtlsdr-git: support for RTL-SDR (RTL2832U) dongles'
@@ -20,7 +20,7 @@
},
install_requires=[
'numpy',
'simplesoapy>=1.4.0',
'simplesoapy>=1.5.0',
'simplespectral'
],
classifiers=[
@@ -105,7 +105,13 @@ def device_info(soapy_args=''):
text.append(' Allowed frequency range [MHz]:')
text.append(' {:.2f} - {:.2f}'.format(*[x / 1e6 for x in device.get_frequency_range()]))
text.append(' Allowed sample rates [MHz]:')
text.append(wrap(', '.join('{:.2f}'.format(x / 1e6) for x in device.list_sample_rates())))
rates = []
for r in device.list_sample_rates():
if r[0] == r[1]:
rates.append('{:.2f}'.format(r[0] / 1e6))
else:
rates.append('{:.2f} - {:.2f}'.format(r[0] / 1e6, r[1] / 1e6))
text.append(wrap(', '.join(rates)))
text.append(' Allowed bandwidths [MHz]:')
bandwidths = []
for b in device.list_bandwidths():
@@ -4,7 +4,7 @@

import numpy
import simplesoapy
from simplespectral import empty, zeros
from simplespectral import zeros

from soapypower import psd, writer

@@ -1 +1 @@
__version__ = '1.6.0'
__version__ = '1.6.1'

0 comments on commit 46e1265

Please sign in to comment.
You can’t perform that action at this time.