Skip to content

Commit 0038f02

Browse files
committed
cleaned up the code
1 parent f8e8f85 commit 0038f02

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

android/python_hackrf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
class PythonHackrfRecipe(CythonRecipe):
8-
version = '1.1.0'
8+
version = '1.1.1'
99
url = 'https://github.com/GvozdevLeonid/python_hackrf/releases/download/v.{version}/python_hackrf-{version}.tar.gz'
1010
depends = ['python3', 'setuptools', 'libusb', 'numpy']
1111
site_packages_name = 'python_hackrf'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python_hackrf"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
authors = [
55
{name="Leonid Gvozdev", email="[email protected]"},
66
]

python_hackrf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '1.1.0'
1+
__version__ = '1.1.1'
22

33
from python_hackrf.pylibhackrf import pyhackrf # noqa F401
44
from python_hackrf.pyhackrf_tools import pyhackrf_info, pyhackrf_sweep # noqa F401

python_hackrf/pyhackrf_tools/pyhackrf_sweep.pyx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,12 @@ cdef sweep_callback(buffer: np.ndarray[:], buffer_length: int, valid_length: int
158158

159159
fftwOut = fft((buffer[index: index + data_length: 2].astype(np.int8, copy=False) / 128 + 1j * buffer[index + 1: index + data_length: 2].astype(np.int8, copy=False) / 128) * window)
160160
pwr = np.log10(np.abs(fftwOut * norm_factor) ** 2) * 10.0
161-
sys.stderr.write('1')
161+
162162
if SWEEP_STYLE == pyhackrf.py_sweep_style.LINEAR:
163163
pwr = fftshift(pwr)
164164

165165
index += data_length
166-
sys.stderr.write('2')
167-
sys.stderr.write(f'2.5 ({len(pwr)}, {fftSize})')
166+
168167
if binary_output_mode:
169168
if SWEEP_STYLE == pyhackrf.py_sweep_style.INTERLEAVED:
170169
record_length = 16 + (fftSize // 4) * 4
@@ -235,7 +234,6 @@ cdef sweep_callback(buffer: np.ndarray[:], buffer_length: int, valid_length: int
235234
else:
236235
file_object.write(line)
237236

238-
sys.stderr.write('3\n')
239237
accepted_bytes += valid_length
240238
sys.stderr.write('\n\n')
241239

0 commit comments

Comments
 (0)