Skip to content

Commit c3c2d44

Browse files
Fix tutorial for #450
1 parent a89d2fb commit c3c2d44

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

eqcorrscan/tutorials/template_creation.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@
1818

1919

2020
def mktemplates(
21-
network_code='GEONET', plot=True, publicIDs=None):
21+
network_code='GEONET', plot=True, public_ids=None):
2222
"""Functional wrapper to make templates"""
23-
publicIDs = publicIDs or [
23+
public_ids = public_ids or [
2424
'2016p008122', '2016p008353', '2016p008155', '2016p008194']
2525
client = Client(network_code)
2626
# We want to download a few events from an earthquake sequence, these are
2727
# identified by publiID numbers, given as arguments
2828

2929
catalog = Catalog()
30-
for publicID in publicIDs:
30+
for public_id in public_ids:
3131
try:
3232
catalog += client.get_events(
33-
eventid=publicID, includearrivals=True)
33+
eventid=public_id, includearrivals=True)
3434
except TypeError:
3535
# Cope with some FDSN services not implementing includearrivals
36-
catalog += client.get_events(eventid=publicID)
36+
catalog += client.get_events(eventid=public_id)
3737

3838
# Lets plot the catalog to see what we have
3939
if plot:
@@ -78,4 +78,4 @@ def mktemplates(
7878
net_code = sys.argv[1]
7979
idlist = list(sys.argv)[2:]
8080
print(idlist)
81-
mktemplates(net_code, idlist)
81+
mktemplates(network_code=net_code, public_ids=idlist)

0 commit comments

Comments
 (0)