Skip to content

Commit 28905c5

Browse files
author
Mike Hearne
authored
Merge pull request #242 from mhearne-usgs/reviewfix
Added review status to origin description
2 parents d7a6a14 + 85a13c4 commit 28905c5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

libcomcat/dataframes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,15 +1293,18 @@ def _describe_origin(event, product):
12931293
# get the origin weight - this should help us determine which
12941294
# origin is authoritative
12951295
weight = product.preferred_weight
1296+
review_status = 'unknown'
1297+
if product.hasProperty('review-status'):
1298+
review_status = product['review-status']
12961299

12971300
fmt = ('Magnitude# %.1f|Time# %s |Time Offset (sec)# %.1f|'
12981301
'Location# (%.3f,%.3f)|Distance from Auth. Origin (km)# %.1f|'
12991302
'Azimuth# %s|Depth# %.1f|Magnitude Type# %s|Location Method# %s|'
1300-
'Preferred Weight#%i')
1303+
'Preferred Weight#%i|Review Status# %s')
13011304
desc = fmt % (omag, otime, tdiff,
13021305
olat, olon, dist, azstr,
13031306
odepth, magtype, loc_method,
1304-
weight)
1307+
weight, review_status)
13051308

13061309
pversion = product.version
13071310
row = {'Product': product.name,

0 commit comments

Comments
 (0)