Skip to content

Commit 300805c

Browse files
authored
Merge pull request #49 from gewitterblitz/lmafile_update
fix issue with incorrect station metadata info while reading lma file
2 parents f945c5e + 4e22a94 commit 300805c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyxlma/lmalib/io/read.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ def __init__(self,filename):
420420
'sources','percent','<P/P_m>','active'])
421421
# Drop the station name column that has a redundant station letter code
422422
# as part of the name and join on station letter code.
423-
station_combo = stations.set_index('ID').drop(columns=['Name']).join(
424-
overview.set_index('ID'))
423+
station_combo = stations.set_index(['ID','Name']).join(
424+
overview.set_index(['ID','Name']))
425425
self.stations = station_combo.reset_index(level=station_combo.index.names)
426426

427427
def gen_sta_info(self):

0 commit comments

Comments
 (0)