Skip to content

Commit

Permalink
Merge pull request #248 from mhearne-usgs/intfix
Browse files Browse the repository at this point in the history
Trapping for non-int version numbers in shakemap products
  • Loading branch information
mhearne-usgs authored Jul 9, 2021
2 parents 362dd2d + d02f270 commit e194382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcomcat/dataframes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,8 @@ def _describe_shakemap(event, product):
maxmmi = float(product['maxmmi'])
except:
pass
pversion = int(product['version'])
pversion = int(float(product['version']))


(ninstrument, ndyfi, mag_used,
depth_used, fault_file, gmpe) = _get_shakemap_info(product)
Expand Down

0 comments on commit e194382

Please sign in to comment.