Skip to content

Commit

Permalink
#62 removed support for Python 3.9 (because using more modern type an…
Browse files Browse the repository at this point in the history
…notations)
  • Loading branch information
crnbaker committed Jun 26, 2024
1 parent c285ffa commit e0a02ce
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/spectrumdevice-docs-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spectrumdevice-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spectrumdevice-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ classifiers =
Operating System :: POSIX :: Linux
Operating System :: Microsoft :: Windows :: Windows 10
Operating System :: MacOS :: MacOS X
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Expand All @@ -35,7 +34,7 @@ package_dir =
include_package_data = True
install_requires =
numpy>=1.26.2
python_requires = >=3.8
python_requires = >=3.10

[options.packages.find]
where = src
Expand Down
5 changes: 2 additions & 3 deletions src/spectrumdevice/measurement.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from datetime import datetime
from dataclasses import dataclass
from typing import List, Optional

from numpy import int16, float64
from numpy.typing import NDArray
Expand All @@ -14,7 +13,7 @@
class Measurement:
"""Measurement is a dataclass for storing a set of waveforms generated by a single acquisition, with a timestamp."""

waveforms: List[VoltageWaveformType] | List[RawWaveformType]
waveforms: list[VoltageWaveformType] | list[RawWaveformType]
"""Contains the acquired waveforms as a list of 1D NumPy arrays or either floats or ints"""
timestamp: Optional[datetime]
timestamp: datetime | None
"""The time at which the acquisition was triggered, as a datetime.datetime object"""

0 comments on commit e0a02ce

Please sign in to comment.