From 097ac6684c25d9b7d509ff41e0b971c263cb048e Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Mon, 20 May 2024 17:59:55 -0400 Subject: [PATCH] fix the check_params script (#2850) when a parameter line had a comment, we were removing the wrong part of the line --- .github/workflows/check_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_params.py b/.github/workflows/check_params.py index c2807710d7..d17bcd047d 100644 --- a/.github/workflows/check_params.py +++ b/.github/workflows/check_params.py @@ -48,7 +48,7 @@ def doit(castro_dir): # remove comments idx = line.find("#") if idx > 0: - line = line[idx:] + line = line[:idx] found_param = pattern.match(line) if not found_param: