Skip to content

Commit

Permalink
Skip invalid lines in baselines file
Browse files Browse the repository at this point in the history
  • Loading branch information
yumorishita committed Dec 11, 2020
1 parent 32c4e3f commit e409224
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LiCSBAS_lib/LiCSBAS_io_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
=========
Changelog
=========
v1.2.1 20201211 Yu Morioshita, GSI
- Skip invalid lines in baselines file in read_bperp_file
v1.2 20200703 Yu Morioshita, GSI
- Replace problematic terms
v1.1 20200227 Yu Morioshita, Uni of Leeds and GSI
Expand Down Expand Up @@ -121,7 +123,8 @@ def read_bperp_file(bperp_file, imdates):
bperp_dict[line[0]] = '0.00' ## single prime. unnecessary?
with open(bperp_file) as f:
for l in f:
bperp_dict[l.split()[1]] = l.split()[2]
if len(l.split()) == 4:
bperp_dict[l.split()[1]] = l.split()[2]

else: ## old format
with open(bperp_file) as f:
Expand Down

0 comments on commit e409224

Please sign in to comment.