From 615730a5e460ef83932ed95e006f59082f01dd7a Mon Sep 17 00:00:00 2001 From: David Minton Date: Mon, 7 Nov 2022 19:22:22 -0500 Subject: [PATCH] Made sure that MIN_GMFRAG was cast as a float --- python/swiftest/swiftest/io.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/swiftest/swiftest/io.py b/python/swiftest/swiftest/io.py index 4678b4784..044f1eff5 100644 --- a/python/swiftest/swiftest/io.py +++ b/python/swiftest/swiftest/io.py @@ -105,6 +105,8 @@ def read_swiftest_param(param_file_name, param, verbose=True): param['ENCOUNTER_CHECK'] = param['ENCOUNTER_CHECK'].upper() if 'GMTINY' in param: param['GMTINY'] = real2float(param['GMTINY']) + if 'MIN_GMFRAG' in param: + param['MIN_GMFRAG'] = real2float(param['MIN_GMFRAG']) except IOError: print(f"{param_file_name} not found.") return param