Skip to content

Commit e194382

Browse files
author
Mike Hearne
authored
Merge pull request #248 from mhearne-usgs/intfix
Trapping for non-int version numbers in shakemap products
2 parents 362dd2d + d02f270 commit e194382

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libcomcat/dataframes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,8 @@ def _describe_shakemap(event, product):
11151115
maxmmi = float(product['maxmmi'])
11161116
except:
11171117
pass
1118-
pversion = int(product['version'])
1118+
pversion = int(float(product['version']))
1119+
11191120

11201121
(ninstrument, ndyfi, mag_used,
11211122
depth_used, fault_file, gmpe) = _get_shakemap_info(product)

0 commit comments

Comments
 (0)