Update quakeflow_nc.py
Browse files- quakeflow_nc.py +1 -1
quakeflow_nc.py
CHANGED
@@ -274,7 +274,7 @@ class QuakeFlow_NC(datasets.GeneratorBasedBuilder):
|
|
274 |
attrs = event[sta_id].attrs
|
275 |
p_picks = attrs["phase_index"][attrs["phase_type"] == "P"]
|
276 |
s_picks = attrs["phase_index"][attrs["phase_type"] == "S"]
|
277 |
-
|
278 |
station_location = [attrs["longitude"], attrs["latitude"], -attrs["elevation_m"] / 1e3]
|
279 |
|
280 |
yield f"{event_id}/{sta_id}", {
|
|
|
274 |
attrs = event[sta_id].attrs
|
275 |
p_picks = attrs["phase_index"][attrs["phase_type"] == "P"]
|
276 |
s_picks = attrs["phase_index"][attrs["phase_type"] == "S"]
|
277 |
+
phase_pick[:, :self.nt] = generate_label([p_picks, s_picks], nt=self.nt)
|
278 |
station_location = [attrs["longitude"], attrs["latitude"], -attrs["elevation_m"] / 1e3]
|
279 |
|
280 |
yield f"{event_id}/{sta_id}", {
|