Skip to content

Commit 078d1a5

Browse files
authored
Merge pull request #51 from nts345045/main
Add git ignore content, updated notebooks, venv recipe for local
2 parents bfec2a9 + a966ca0 commit 078d1a5

File tree

3 files changed

+36
-21
lines changed

3 files changed

+36
-21
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.DS_Store
22
.ipynb_checkpoints
3-
notebooks/data/
4-
notebooks/Nate/catalog_files/
3+
notebooks/data/waveform_dataset/
4+
notebooks/Nate/catalog_files/
5+
notebooks/Nate/qc_env/*
6+

notebooks/Nate/new_event_check.ipynb

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
],
3030
"source": [
3131
"# Install dependency - WARNING: DOES NOT WORK ON JUPYTER HUB\n",
32-
"! pip install pyrocko[gui]"
32+
"# ! pip install pyrocko[gui]"
3333
]
3434
},
3535
{
@@ -1487,10 +1487,10 @@
14871487
{
14881488
"data": {
14891489
"text/plain": [
1490-
"Inventory created at 2025-05-13T07:26:17.419866Z\n",
1491-
"\tCreated by: ObsPy 1.4.1\n",
1490+
"Inventory created at 2025-05-13T15:29:43.275460Z\n",
1491+
"\tCreated by: ObsPy 1.4.2\n",
14921492
"\t\t https://www.obspy.org\n",
1493-
"\tSending institution: NCEDC,ObsPy 1.4.1 (NCEDC)\n",
1493+
"\tSending institution: NCEDC,ObsPy 1.4.2 (NCEDC)\n",
14941494
"\tContains:\n",
14951495
"\t\tNetworks (97):\n",
14961496
"\t\t\tBK (24x), CE (16x), NC (36x), NP (14x), PB (7x)\n",
@@ -1599,36 +1599,33 @@
15991599
},
16001600
{
16011601
"cell_type": "code",
1602-
"execution_count": 8,
1602+
"execution_count": null,
16031603
"metadata": {},
16041604
"outputs": [
16051605
{
16061606
"name": "stderr",
16071607
"output_type": "stream",
16081608
"text": [
1609-
"qt.qpa.fonts: Populating font family aliases took 51 ms. Replace uses of missing font family \".AppleSystemUIFont\" with one that exists to avoid this cost. \n"
1609+
"Matplotlib Qt5Agg backend is not available. Snufflings drawing matplotlib figures may not work properly.\n"
16101610
]
1611-
},
1612-
{
1613-
"data": {
1614-
"text/plain": [
1615-
"(None, <pyrocko.pile.Sorted at 0x330c1dfc0>)"
1616-
]
1617-
},
1618-
"execution_count": 8,
1619-
"metadata": {},
1620-
"output_type": "execute_result"
16211611
}
16221612
],
16231613
"source": [
16241614
"events, markers = to_pyrocko_events_and_picks(cat)\n",
16251615
"obspy_compat.snuffle(st, ntracks=len(st), inventory=inv, markers=markers)"
16261616
]
1617+
},
1618+
{
1619+
"cell_type": "code",
1620+
"execution_count": null,
1621+
"metadata": {},
1622+
"outputs": [],
1623+
"source": []
16271624
}
16281625
],
16291626
"metadata": {
16301627
"kernelspec": {
1631-
"display_name": "baker",
1628+
"display_name": "Python 3 (ipykernel)",
16321629
"language": "python",
16331630
"name": "python3"
16341631
},
@@ -1642,9 +1639,9 @@
16421639
"name": "python",
16431640
"nbconvert_exporter": "python",
16441641
"pygments_lexer": "ipython3",
1645-
"version": "3.10.0"
1642+
"version": "3.11.12"
16461643
}
16471644
},
16481645
"nbformat": 4,
1649-
"nbformat_minor": 2
1646+
"nbformat_minor": 4
16501647
}

notebooks/Nate/qc_env.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
# auth: Nathan T Stevens
3+
4+
# org: Pacific Northwest Seismic Network
5+
# license: GPLv3
6+
# purpose: sets up a python venv for qc notebooks in this directory
7+
8+
python3 -m venv qc_env
9+
source qc_env/bin/activate
10+
python3 -m pip install --upgrade pip
11+
pip install obspy
12+
pip install matplotlib
13+
pip install pyrocko[gui]
14+
pip install obsplus
15+
pip install ipykernel
16+
pip install jupyter

0 commit comments

Comments
 (0)