Skip to content

Commit b9fc09e

Browse files
committed
flake8
1 parent ea9afd8 commit b9fc09e

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

pvlib/iotools/pan_binary.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Read older versions of PAN files created by PVsyst (<v6.40) use a Borland Pascal Real48
3-
format.
2+
Read older versions of PAN files created by PVsyst (<v6.40)
3+
use a Borland Pascal Real48 format.
44
55
This is based on:
66
https://github.com/CanadianSolar/CASSYS/blob/
@@ -194,7 +194,8 @@ def _extract_iam_profile(start_index, byte_array):
194194

195195
def read_pan_binary(filename):
196196
"""
197-
Retreive module data from a .pan binary file, for PVsyst v6.39 and earlier .
197+
Retreive module data from a .pan binary file,
198+
for PVsyst v6.39 and earlier.
198199
199200
Parameters
200201
----------
@@ -397,6 +398,10 @@ def read_pan_binary(filename):
397398
)
398399

399400
except (IndexError, TypeError, struct.error) as e:
400-
raise ValueError(f"Unable to parse binary PAN file. Is this a binary file and compatible with PVsyst up to 6.39?" from e
401+
raise ValueError(
402+
"Unable to parse binary PAN file. Is this a binary file "
403+
"and compatible with PVsyst up to 6.39?"
404+
f"Error details: {str(e)}"
405+
)
401406

402407
return data

0 commit comments

Comments
 (0)