Skip to content

Commit 870402d

Browse files
committed
add binary reader
1 parent 19b02b2 commit 870402d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pvlib/iotools/pan_binary.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
# --- Supporting Functions ---
20-
def _read48_to_float(*, real48):
20+
def _read48_to_float(real48):
2121
"""
2222
Convert a 6-byte Delphi Real48 encoded value to a standard Python float.
2323
@@ -64,7 +64,7 @@ def _read48_to_float(*, real48):
6464
return mantissa * (2.0**exponent)
6565

6666

67-
def _find_marker_index(*, marker, start_index, byte_array):
67+
def _find_marker_index(marker, start_index, byte_array):
6868
"""
6969
Find the index of the first occurrence of a hex marker after a start index.
7070
@@ -91,7 +91,7 @@ def _find_marker_index(*, marker, start_index, byte_array):
9191
return found_index
9292

9393

94-
def _get_param_index(*, start_index, offset_num):
94+
def _get_param_index(start_index, offset_num):
9595
"""
9696
Calculate the start index of a Real48 parameter.
9797
@@ -110,7 +110,7 @@ def _get_param_index(*, start_index, offset_num):
110110
return start_index + 6 * offset_num
111111

112112

113-
def _extract_byte_parameters(*, byte_array, start_index, num_bytes):
113+
def _extract_byte_parameters(byte_array, start_index, num_bytes):
114114
"""
115115
Extract bytes that form a single parameter from the original byte array.
116116
@@ -144,7 +144,7 @@ def _extract_byte_parameters(*, byte_array, start_index, num_bytes):
144144
value_format = "{:.2f}"
145145

146146

147-
def _extract_iam_profile(*, start_index, byte_array):
147+
def _extract_iam_profile(start_index, byte_array):
148148
"""
149149
Extract the IAM (Incidence Angle Modifier) profile.
150150
@@ -186,7 +186,7 @@ def _extract_iam_profile(*, start_index, byte_array):
186186
return iam_profile
187187

188188

189-
def read_pan_binary(*, filename):
189+
def read_pan_binary(filename):
190190
"""
191191
Retrieve Module data from a .pan binary file.
192192

0 commit comments

Comments
 (0)