Skip to content

Commit b2c7533

Browse files
committed
trying to placate pre-commit again
1 parent 3ed0e72 commit b2c7533

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

AFMReader/jpk.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010

1111
logger.enable(__package__)
1212

13+
JPK_TAGS = {
14+
"n_slots": "32896",
15+
"default": "32897",
16+
"tag_name": "32912",
17+
"first_scaling_type": "32931",
18+
"first_scaling_name": "32932",
19+
"first_offset_name": "32933",
20+
}
1321

1422
def _jpk_pixel_to_nm_scaling(tiff_page: tifffile.tifffile.TiffPage) -> float:
1523
"""
@@ -57,7 +65,7 @@ def _get_z_scaling(tif: tifffile.tifffile, channel_idx: int) -> tuple[float, flo
5765
default_slot = tif.pages[channel_idx].tags["32897"]
5866

5967
# Create a dictionary of list for the differnt slots
60-
slots dict[int, list[str]] = {slot: [] for slot in range(n_slots)}
68+
slots: dict[int, list[str]] = {slot: [] for slot in range(n_slots)}
6169

6270
# Extract the tags with numerical names in each slot
6371
while n_slots >= 0:

0 commit comments

Comments
 (0)