From d02f270a673afaf03a17120cffc96ef39c1c4d99 Mon Sep 17 00:00:00 2001 From: Michael Hearne Date: Fri, 9 Jul 2021 14:30:05 -0600 Subject: [PATCH] Trapping for non-int version numbers in shakemap products --- libcomcat/dataframes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcomcat/dataframes.py b/libcomcat/dataframes.py index 04b101b..93d1e45 100644 --- a/libcomcat/dataframes.py +++ b/libcomcat/dataframes.py @@ -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)