[bugfix] gaps are now merged when data are loaded and not when plotting (could cause problems with data object being empty)
This commit is contained in:
1 parent
15882ed27e
commit
c1cb0e4a37
12 files changed
+5194
-12
No files matched your search
@@ -1312,14 +1312,6 @@ class PylotCanvas(FigureCanvas):
|
||||
if mapping:
|
||||
plot_positions = self.calcPlotPositions(st_select, compclass)
|
||||
|
||||
gaps = st_select.get_gaps()
|
||||
if gaps:
|
||||
merged = ['{}.{}.{}.{}'.format(*gap[:4]) for gap in gaps]
|
||||
st_select.merge(method=1)
|
||||
print('Merged the following stations because of gaps:')
|
||||
for merged_station in merged:
|
||||
print(merged_station)
|
||||
|
||||
# list containing tuples of network, station, channel and plot position (for sorting)
|
||||
nslc = []
|
||||
for plot_pos, trace in enumerate(st_select):
|
||||
|
||||
Reference in new issue
Block a user