Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuwq0 authored Nov 30, 2023
1 parent db8abb5 commit 0f1750e
Showing 1 changed file with 5 additions and 61 deletions.
66 changes: 5 additions & 61 deletions slurm/quakeflow_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,8 @@
}
],
"source": [
"# run(root_path, \"run_phasenet.py\")\n",
"run(root_path, \"run_phasenet_v2.py\")"
"run(root_path, \"run_phasenet.py\")\n",
"# run(root_path, \"run_phasenet_v2.py\")"
]
},
{
Expand Down Expand Up @@ -1435,12 +1435,12 @@
"end_time = event.time + pd.Timedelta(seconds=30)\n",
"waveforms = obspy.Stream()\n",
"try:\n",
" waveforms += obspy.read(f\"{root_path}/{region}/waveforms/{begin_time.year}-{begin_time.dayofyear}/{begin_time.hour}/*.mseed\")\n",
" waveforms += obspy.read(f\"{root_path}/{region}/waveforms/{begin_time.year}-{begin_time.dayofyear:03d}/{begin_time.hour:02d}/*.mseed\")\n",
"except Exception as e:\n",
" print(e)\n",
"if end_time.hour != begin_time.hour:\n",
" try:\n",
" waveforms += obspy.read(f\"{root_path}/{region}/waveforms/{end_time.year}-{end_time.dayofyear}/{end_time.hour}/*.mseed\")\n",
" waveforms += obspy.read(f\"{root_path}/{region}/waveforms/{end_time.year}-{end_time.dayofyear:03d}/{end_time.hour:02d}/*.mseed\")\n",
" except Exception as e:\n",
" print(e)\n",
"stream = waveforms.copy()\n",
Expand Down Expand Up @@ -1618,7 +1618,7 @@
"import cartopy.feature as cfeature\n",
"import cartopy.io.img_tiles as cimgt\n",
"\n",
"gamma_events = gamma_events[gamma_events[\"gamma_score\"] > 30]\n",
"# gamma_events = gamma_events[gamma_events[\"gamma_score\"] > 30]\n",
"\n",
"fig = plt.figure(figsize=plt.rcParams[\"figure.figsize\"] * np.array([1.5, 1]))\n",
"box = dict(boxstyle=\"round\", facecolor=\"white\", alpha=1)\n",
Expand Down Expand Up @@ -1756,62 +1756,6 @@
")\n",
"plt.show()\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 0f1750e

Please sign in to comment.