Skip to content

Commit e409224

Browse files
committed
Skip invalid lines in baselines file
1 parent 32c4e3f commit e409224

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

LiCSBAS_lib/LiCSBAS_io_lib.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
=========
99
Changelog
1010
=========
11+
v1.2.1 20201211 Yu Morioshita, GSI
12+
- Skip invalid lines in baselines file in read_bperp_file
1113
v1.2 20200703 Yu Morioshita, GSI
1214
- Replace problematic terms
1315
v1.1 20200227 Yu Morioshita, Uni of Leeds and GSI
@@ -121,7 +123,8 @@ def read_bperp_file(bperp_file, imdates):
121123
bperp_dict[line[0]] = '0.00' ## single prime. unnecessary?
122124
with open(bperp_file) as f:
123125
for l in f:
124-
bperp_dict[l.split()[1]] = l.split()[2]
126+
if len(l.split()) == 4:
127+
bperp_dict[l.split()[1]] = l.split()[2]
125128

126129
else: ## old format
127130
with open(bperp_file) as f:

0 commit comments

Comments
 (0)