Skip to content

Commit 95d828e

Browse files
committed
feature: Minimum supported version python>=3.10
Closes #142
1 parent 8160e9a commit 95d828e

13 files changed

Lines changed: 6 additions & 18 deletions

File tree

.github/workflows/pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Python
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: 3.9
25+
python-version: 3.11
2626
- name: Installing the package
2727
run: |
2828
pip3 install .

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
15-
python-version: ['3.9', '3.10', '3.11', '3.12']
15+
python-version: ['3.10', '3.11', '3.12']
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Python

AFMReader/asd.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""For decoding and loading .asd AFM file format into Python Numpy arrays."""
22

3-
from __future__ import annotations
43
import errno
54
import os
65
from pathlib import Path
@@ -232,8 +231,7 @@ def load_asd(file_path: str | Path, channel: str):
232231
header_dict = read_header_file_version_2(open_file)
233232
else:
234233
raise ValueError(
235-
f"File version {file_version} unknown. Please add support if you "
236-
"know how to decode this file version."
234+
f"File version {file_version} unknown. Please add support if you know how to decode this file version."
237235
)
238236
logger.debug(f"header dict: \n{header_dict}")
239237

@@ -250,7 +248,7 @@ def load_asd(file_path: str | Path, channel: str):
250248
if channel == header_dict["channel1"]:
251249
logger.info(f"Requested channel {channel} matches first channel in file: {header_dict['channel1']}")
252250
elif channel == header_dict["channel2"]:
253-
logger.info(f"Requested channel {channel} matches second channel in file: " f"{header_dict['channel2']}")
251+
logger.info(f"Requested channel {channel} matches second channel in file: {header_dict['channel2']}")
254252

255253
# Skip first channel data
256254
_size_of_frame_header = header_dict["frame_header_length"]
@@ -818,7 +816,7 @@ def create_analogue_digital_converter(
818816
)
819817
else:
820818
raise ValueError(
821-
f"Analogue to digital range hex value {analogue_digital_range} has no known " "analogue-digital mapping."
819+
f"Analogue to digital range hex value {analogue_digital_range} has no known analogue-digital mapping."
822820
)
823821
logger.info(f"Analogue to digital mapping | Range: {analogue_digital_range} -> {mapping}")
824822
logger.info(f"Converter: {converter}")

AFMReader/general_loader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Switchboard for input files."""
22

3-
from __future__ import annotations
43
from pathlib import Path
54

65
import numpy.typing as npt

AFMReader/gwy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""For decoding and loading .gwy AFM file format into Python Numpy arrays."""
22

3-
from __future__ import annotations
43
from pathlib import Path
54
import re
65
from typing import Any, BinaryIO

AFMReader/ibw.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""For decoding and loading .ibw AFM file format into Python Numpy arrays."""
22

3-
from __future__ import annotations
43
import errno
54
import os
65
from pathlib import Path

AFMReader/io.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""For reading and writing data from / to files."""
22

3-
from __future__ import annotations
43
from pathlib import Path
54

65
import struct

AFMReader/jpk.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""For decoding and loading .jpk AFM file format into Python Numpy arrays."""
22

3-
from __future__ import annotations
43
from importlib import resources
54
from pathlib import Path
65

AFMReader/spm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""For decoding and loading .spm AFM file format into Python Numpy arrays."""
22

3-
from __future__ import annotations
43
from pathlib import Path
54

65
import pySPM

AFMReader/stp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""For decoding and loading .stp AFM file format into Python Numpy arrays."""
22

3-
from __future__ import annotations
43
from pathlib import Path
54
import re
65

0 commit comments

Comments
 (0)