File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -95,19 +95,17 @@ def append(self, inv: Inventory):
95
95
pass
96
96
97
97
if (type (self .cha_dict [nc ][sc ][lc ][cc ]) == defaultdict ):
98
- self .cha_dict [nc ][sc ][lc ][cc ] = cha
99
- else :
100
- # update start/end dates for existing channels
101
- ocha = self .cha_dict [nc ][sc ][lc ][cc ]
102
- if (ocha .start_date and cha .start_date ):
103
- if (ocha .start_date > cha .start_date ): ocha .start_date = cha .start_date
104
- elif (ocha .start_date is None and cha .start_date ):
105
- ocha .start_date = cha .start_date
106
- # end if
107
-
108
- if (ocha .end_date and cha .end_date ):
109
- if (ocha .end_date < cha .end_date ): ocha .end_date = cha .end_date
110
- # end if
98
+ cha_copy = copy .deepcopy (cha )
99
+
100
+ """
101
+ Channel start- and end-dates in the inventory do not reflect actual waveform
102
+ data holdings. We therefore set the start- and end-times to None, so usable
103
+ data is not lost e.g. when rotating waveform data for which corresponding
104
+ metadata for the correct timeframes do not exist.
105
+ """
106
+ cha_copy .start_date = None
107
+ cha_copy .end_date = None
108
+ self .cha_dict [nc ][sc ][lc ][cc ] = cha_copy
111
109
# end if
112
110
# end for
113
111
# end for
You can’t perform that action at this time.
0 commit comments