Skip to content

Commit fc6f56d

Browse files
authored
Fixed formatting/stickler issues
1 parent a4c1d6f commit fc6f56d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pvlib/iotools/bsrn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ def read_bsrn(filename):
9292
if str(filename).endswith('.gz'): # check if file is a gzipped (.gz) file
9393
with gzip.open(filename, 'rt') as f:
9494
for num, line in enumerate(f):
95-
if num==1: # Get month and year from the 2nd line
95+
if num == 1: # Get month and year from the 2nd line
9696
start_date = pd.Timestamp(year=int(line[7:11]),
9797
month=int(line[3:6]), day=1)
9898
if line.startswith('*'): # Find start of all logical records
9999
line_no_dict[line[2:6]] = num # key is 4 digit LR number
100100
else:
101101
with open(filename, 'r') as f:
102102
for num, line in enumerate(f):
103-
if num==1: # Get month and year from the 2nd line
103+
if num == 1: # Get month and year from the 2nd line
104104
start_date = pd.Timestamp(year=int(line[7:11]),
105105
month=int(line[3:6]), day=1)
106106
if line.startswith('*'): # Find start of all logical records

0 commit comments

Comments
 (0)