changed usage signature of some function from module utils and the corresponding calls

This commit is contained in:
2015-06-11 10:12:50 +02:00
parent 546e919dc9
commit c5da8fd994
3 changed files with 29 additions and 16 deletions

View File

@@ -74,14 +74,14 @@ def readPILOTEvent(phasfn=None, locfn=None, authority_id=None, **kwargs):
stations = [stat for stat in phases['stat'][0:-1:3]]
event = createEvent(eventDate, loccinfo, 'earthquake', eventNum,
event = createEvent(eventDate, loccinfo, None, 'earthquake', eventNum,
authority_id)
lat = float(loc['LAT'])
lon = float(loc['LON'])
dep = float(loc['DEP'])
origin = createOrigin(eventDate, loccinfo, lat, lon, dep, eventNum)
origin = createOrigin(eventDate, loccinfo, lat, lon, dep)
for n, pick in enumerate(phases['Ptime']):
if pick[0] > 0:
kwargs = {'year': int(pick[0]),