Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.0.26 #449

Merged
merged 16 commits into from
Jan 22, 2025
Merged
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', 3.11, 3.12]
python-version: [3.8, 3.9, '3.10', 3.11, 3.12, 3.13]
steps:
- uses: actions/checkout@v3

Expand All @@ -43,10 +43,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.10
- name: Set up Python 3.13
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: 3.13

- name: Upgrade pip
run: python3 -m pip install --upgrade pip
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.12
- name: Set up Python 3.13
uses: actions/setup-python@v4
with:
python-version: 3.12
python-version: 3.13

- name: Upgrade pip
run: python3 -m pip install --upgrade pip
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, '3.10', 3.11, 3.12]
python-version: [3.8, 3.9, '3.10', 3.11, 3.12, 3.13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.9.2
hooks:
- id: ruff
- id: ruff-format
10 changes: 10 additions & 0 deletions docs/api/misc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ Probability

.. python-apigen-group:: probability

Independent random variables
----------------------------

.. python-apigen-group:: independent-rvs

IID random variables
--------------------

.. python-apigen-group:: iid-rvs

Data manipulation
-----------------

Expand Down
15 changes: 15 additions & 0 deletions docs/release-notes/v0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ tocdepth: 2

# v0.0

## v0.0.26

*Released January 21, 2025*

### Changes

- Pinned `galois` version to 0.4.4.
- Added support for Python 3.13.
- Added support for NumPy 2.1.
- Added support for Numba 0.61.

### Contributors

- Matt Hostetter ([@mhostetter](https://github.com/mhostetter))

## v0.0.25

*Released December 16, 2024*
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand All @@ -48,7 +49,7 @@ dependencies = [
"numba", # Use galois's version limitation
"scipy",
"matplotlib",
"galois == 0.4.3", # Exact match required because of use of internals
"galois == 0.4.4", # Exact match required because of use of internals
"typing_extensions >= 4.0.0", # v4.0.0 is needed for use of Self (Python 3.11+) and Literal (Python 3.8+)
]
dynamic = ["version"]
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ruff == 0.5.1
ruff == 0.9.2
pre-commit
pytest
pytest-cov[toml]
Expand Down
3 changes: 1 addition & 2 deletions src/sdr/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ def hexdump(
data = verify_arraylike(data, int=True, ndim=1, inclusive_min=0, exclusive_max=256)
verify_scalar(width, int=True, inclusive_min=1, inclusive_max=16)

if width > data.size:
width = data.size
width = min(width, data.size)

string = ""
for i in range(0, data.size, width):
Expand Down
4 changes: 2 additions & 2 deletions src/sdr/_modulation/_cpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ def modulate(self, s: npt.ArrayLike) -> npt.NDArray[np.complex128]:
def _modulate(self, s: npt.NDArray[np.int_]) -> npt.NDArray[np.complex128]:
s = self._symbol_labels[s] # Relabeled decimal symbols
freq = self.index * (2 * s - (self.order - 1)) # Instantaneous frequency
print(freq)
# print(freq)
# return f
freq_ps = self._tx_pulse_shape(freq) # Pulse-shaped instantaneous frequency
print(freq_ps)
# print(freq_ps)
# phase_ps = np.cumsum(freq_ps) # Pulse-shaped instantaneous phase
# phase_ps = np.insert(phase_ps, 0, 0) # Start with phase 0
# phase_ps = phase_ps[:-1] # Trim last phase
Expand Down
Loading
Loading