zhuwq0 commited on
Commit
2b5bc71
1 Parent(s): bef61de

Update quakeflow_nc.py

Browse files
Files changed (1) hide show
  1. 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
- # 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}", {
 
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}", {