11"""For decoding and loading .asd AFM file format into Python Numpy arrays."""
22
3- from __future__ import annotations
43import errno
54import os
65from 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 } " )
0 commit comments