Skip to content

Commit 71895d1

Browse files
authored
Add offset to line num after explicitly handling start date
1 parent 5cf3d30 commit 71895d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvlib/iotools/bsrn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def read_bsrn(filename):
103103
tz='UTC') # BSRN timestamps are UTC
104104
for num, line in enumerate(f):
105105
if line.startswith('*'): # Find start of all logical records
106-
line_no_dict[line[2:6]] = num # key is 4 digit LR number
106+
line_no_dict[line[2:6]] = num + 2 # key is 4 digit LR number
107107

108108
# Determine start and end line of logical record LR0100 to be parsed
109109
start_row = line_no_dict['0100'] + 1 # Start line number

0 commit comments

Comments
 (0)