From ac7933bd2c37cf7e71dc1bf55112e8ed33e92648 Mon Sep 17 00:00:00 2001 From: Mieszko Makuch Date: Tue, 11 Mar 2025 11:01:17 +0100 Subject: [PATCH] ISEPOS-2325 Added a default value like "b" to maxmagnitude_wrapper.py to fix 'NoneType' object is not iterable --- src/maxmagnitude_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maxmagnitude_wrapper.py b/src/maxmagnitude_wrapper.py index de02925..591b4f6 100644 --- a/src/maxmagnitude_wrapper.py +++ b/src/maxmagnitude_wrapper.py @@ -37,7 +37,7 @@ def main(argv): parser.add_argument("--G", help="Shear modulus of reservoir (in Pa).", type=float, default=35000000000) parser.add_argument("--ssd", help="Static stress drop (in Pa).", type=float, default=3000000) parser.add_argument("--C", help="Geometrical constant.", type=float, default=0.95) - parser.add_argument("--b_value_type", help="b-value type: parameter of type 'TEXT'", action='append') + parser.add_argument("--b_value_type", help="b-value type: parameter of type 'TEXT'", action='append', default="b") parser.add_argument("--cl", help="Confidence level in van der Elst model.", type=float, action='append') parser.add_argument("--mag_name", help="Magnitude column name", type=str)