Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.1
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 0

Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
cibw_skip: "pp* *musllinux* cp314t*"

steps:
- uses: actions/checkout@v6.0.1
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 0

Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
merge-multiple: true

- name: Generate artifact attestations
uses: actions/attest-build-provenance@v3.1.0
uses: actions/attest-build-provenance@v3.2.0
with:
subject-path: "dist/*"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/conda-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.1.4
with:
fetch-depth: 0

Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
fi

- name: Store conda build artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: ${{ always() && steps.prepare-artifacts.outcome == 'success' }}
with:
name: ${{ steps.prepare-artifacts.outputs.BLD_ARTIFACT_NAME }}
Expand All @@ -203,7 +203,7 @@ jobs:
continue-on-error: true

- name: Store conda build environment artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
# only relevant if build failed, see above
if: ${{ always() && steps.determine-status.outputs.status == 'failure' && steps.prepare-artifacts.outcome == 'success' }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
name: flake8-black
steps:
- uses: actions/checkout@v6.0.1
- uses: actions/checkout@v6.0.2
- name: Set up Python environment
uses: actions/setup-python@v6
with:
Expand Down
1 change: 1 addition & 0 deletions python/digital_rf/digital_rf_deprecated_hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

$Id$
"""

from __future__ import absolute_import, division, print_function

import datetime
Expand Down
1 change: 1 addition & 0 deletions python/digital_rf/list_drf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Module for listing Digital RF/Metadata files in a directory."""

from __future__ import absolute_import, division, print_function

import bisect
Expand Down
1 change: 1 addition & 0 deletions python/digital_rf/mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Module for mirroring Digital RF files from on directory to another."""

from __future__ import absolute_import, division, print_function

import datetime
Expand Down
1 change: 1 addition & 0 deletions python/digital_rf/ringbuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Module for watching a directory and deleting the oldest Digital RF files."""

from __future__ import absolute_import, division, print_function

import datetime
Expand Down
1 change: 1 addition & 0 deletions python/digital_rf/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Utility functions for Digital RF and Digital Metadata."""

from __future__ import absolute_import, division, print_function

import ast
Expand Down
1 change: 1 addition & 0 deletions python/digital_rf/watchdog_drf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Module for montoring creation/modification/deletion of Digital RF files."""

from __future__ import absolute_import, division, print_function

import datetime
Expand Down
2 changes: 1 addition & 1 deletion python/examples/beacon/beacon_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@


"""

from __future__ import absolute_import, division, print_function

import argparse
Expand All @@ -37,7 +38,6 @@
import scipy.signal as sig
from mpl_toolkits.basemap import Basemap


TLE_def = (
"CASSIOPE",
"1 39265U 13055A 17015.93102647 +.00001768 +00000-0 +52149-4 0 9992",
Expand Down
17 changes: 9 additions & 8 deletions python/examples/beacon/beacon_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Example configurations are included along with this script.

"""

from __future__ import absolute_import, division, print_function

import datetime
Expand Down Expand Up @@ -224,14 +225,14 @@ def max_satellite_bandwidth(
None
"""
maxBandwidth = 0
(satRise, satTransit, satSet) = satellite_rise_and_set(
satRise, satTransit, satSet = satellite_rise_and_set(
opt, obsLat, obsLong, obsElev, objName, tle1, tle2, startDate
)
if satRise == satTransit == satSet:
return 0

while satRise < endDate:
(objBandwidth, shiftedFrequencies) = satellite_bandwidth(
objBandwidth, shiftedFrequencies = satellite_bandwidth(
opt,
obsLat,
obsLong,
Expand All @@ -246,7 +247,7 @@ def max_satellite_bandwidth(
)
if objBandwidth > maxBandwidth:
maxBandwidth = objBandwidth
(satRise, satTransit, satSet) = satellite_rise_and_set(
satRise, satTransit, satSet = satellite_rise_and_set(
opt,
obsLat,
obsLong,
Expand Down Expand Up @@ -324,7 +325,7 @@ def satellite_bandwidth(
) = satellite_values_at_time(
opt, obsLat, obsLong, obsElev, objName, tle1, tle2, currTime
)
(dopplerFreq) = doppler_shift(beaconFreq, range_velocity)
dopplerFreq = doppler_shift(beaconFreq, range_velocity)
dopplerFrequencies.append(dopplerFreq)
dopplerBandwidth.append(dopplerFreq - beaconFreq)
currTime = currTime + ephem.second * interval
Expand Down Expand Up @@ -433,7 +434,7 @@ def get_next_object(opt, site, objects, ctime):
c_dtime = datetime.datetime.fromtimestamp(ctime, tz=datetime.timezone.utc)
c_ephem_time = ephem.Date(c_dtime)

(sat_rise, sat_transit, sat_set) = satellite_rise_and_set(
sat_rise, sat_transit, sat_set = satellite_rise_and_set(
opt, obs_lat, obs_long, obs_elev, obj_name, obj_tle1, obj_tle2, c_ephem_time
)

Expand Down Expand Up @@ -520,7 +521,7 @@ def ephemeris_passes(opt, st0, et0):
c_ephem_time = ephem.Date(c_dtime)

try:
(sat_rise, sat_transit, sat_set) = satellite_rise_and_set(
sat_rise, sat_transit, sat_set = satellite_rise_and_set(
opt,
obs_lat,
obs_long,
Expand Down Expand Up @@ -555,7 +556,7 @@ def ephemeris_passes(opt, st0, et0):
obj_tle2,
sat_transit,
)
(obj_bandwidth, obj_doppler) = satellite_bandwidth(
obj_bandwidth, obj_doppler = satellite_bandwidth(
opt,
obs_lat,
obs_long,
Expand Down Expand Up @@ -986,7 +987,7 @@ def parse_command_line():
help="Radio site configuration file.",
)

(options, args) = parser.parse_args()
options, args = parser.parse_args()

return (options, args)

Expand Down
1 change: 1 addition & 0 deletions python/examples/benchmark_rf_read_hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Assumes the benchmark write script has already been run.

"""

from __future__ import absolute_import, division, print_function

import os
Expand Down
1 change: 1 addition & 0 deletions python/examples/benchmark_rf_write_hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Benchmark I/O of Digital RF write in different configurations."""

from __future__ import absolute_import, division, print_function

import os
Expand Down
1 change: 1 addition & 0 deletions python/examples/example_read_digital_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Assumes the example Digital Metadata write script has already been run.

"""

from __future__ import absolute_import, division, print_function

import os
Expand Down
1 change: 1 addition & 0 deletions python/examples/example_read_digital_rf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Assumes the example Digital RF write script has already been run.

"""

from __future__ import absolute_import, division, print_function

import os
Expand Down
1 change: 1 addition & 0 deletions python/examples/example_write_digital_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
number of levels.

"""

from __future__ import absolute_import, division, print_function

import os
Expand Down
1 change: 1 addition & 0 deletions python/examples/example_write_digital_rf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Writes continuous complex short data.

"""

from __future__ import absolute_import, division, print_function

import os
Expand Down
1 change: 1 addition & 0 deletions python/examples/sounder/prc_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
doi:10.5194/amt-9-829-2016, 2016.

"""

from __future__ import absolute_import, division, print_function

import datetime
Expand Down
17 changes: 5 additions & 12 deletions python/examples/sounder/tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Transmit waveforms with synchronized USRPs."""

from __future__ import absolute_import, division, print_function

import math
Expand Down Expand Up @@ -303,9 +304,7 @@ def _parse_options(**kwargs):
op.mboard_strs.append(s)

if op.verbose:
opstr = (
dedent(
"""\
opstr = dedent("""\
Main boards: {mboard_strs}
Subdevices: {subdevs}
Frequency: {centerfreqs}
Expand All @@ -323,11 +322,7 @@ def _parse_options(**kwargs):
Stream arguments: {stream_args}
Tune arguments: {tune_args}
Sample rate: {samplerate}
"""
)
.strip()
.format(**op.__dict__)
)
""").strip().format(**op.__dict__)
print(opstr)

# check that subdevice specifications are unique per-mainboard
Expand Down Expand Up @@ -752,12 +747,10 @@ def run(self, starttime=None, endtime=None, duration=None, period=10):
break_on_hyphens=False,
subsequent_indent=" " * (len(scriptname) + 1),
)
egs = [
"""\
egs = ["""\
{0} -m 192.168.10.2 -d "A:0" -f 440e6 -F 12.5e6 -G 0.25 -g 0 -r 1e6
code.bin
"""
]
"""]
egs = [" \\\n".join(egtw.wrap(dedent(s.format(scriptname)))) for s in egs]
epi = "\n" + "\n\n".join(epi_pars + egs) + "\n"

Expand Down
1 change: 1 addition & 0 deletions python/examples/sounder/waveforms/create_waveform.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
doi:10.5194/amt-9-829-2016, 2016.

"""

from __future__ import absolute_import, division, print_function, unicode_literals

import math
Expand Down
1 change: 1 addition & 0 deletions python/gr_digital_rf/digital_rf_sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Module defining a Digital RF Source block."""

from __future__ import absolute_import, division, print_function

import os
Expand Down
1 change: 1 addition & 0 deletions python/gr_digital_rf/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Module defining raster (periodic window) tools for GNU Radio."""

from __future__ import absolute_import, division, print_function

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions python/gr_digital_rf/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------------
"""Module defining vector tools for GNU Radio."""

from __future__ import absolute_import, division, print_function

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions python/tools/digital_metadata_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

$Id$
"""

from __future__ import absolute_import, division, print_function

import argparse
Expand Down
1 change: 1 addition & 0 deletions python/tools/digital_rf_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

$Id$
"""

from __future__ import absolute_import, division, print_function

import argparse
Expand Down
1 change: 1 addition & 0 deletions python/tools/digital_rf_upconvert.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

$Id$
"""

from __future__ import absolute_import, division, print_function

import argparse
Expand Down
5 changes: 2 additions & 3 deletions python/tools/drf_cross_sti.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

"""


import datetime
import itertools as it
import optparse
Expand Down Expand Up @@ -554,7 +553,7 @@ def parse_command_line():
help="Print status messages to stdout.",
)

(options, args) = parser.parse_args()
options, args = parser.parse_args()

return (options, args)

Expand All @@ -570,7 +569,7 @@ def parse_command_line():
"""

# Parse the Command Line for configuration
(options, args) = parse_command_line()
options, args = parse_command_line()

if options.path is None:
print("Please provide an input source with the -p option!")
Expand Down
Loading
Loading