From 90dd3e845b5c91f7a913e81926e7e8ca65af6f28 Mon Sep 17 00:00:00 2001 From: Roland Haas <rhaas@tapir.caltech.edu> Date: Sun, 16 Jun 2019 21:17:54 -0400 Subject: [PATCH] POWER: add very crude handling for comments --- POWER/power.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/POWER/power.py b/POWER/power.py index e3d9e9e..7b2380e 100755 --- a/POWER/power.py +++ b/POWER/power.py @@ -248,7 +248,7 @@ def getCutoffFrequency(sim_name): with open(filename) as file: contents = file.readlines() for line in contents: - line_elems = line.split(" ") + line_elems = re.sub("#.*", "", line).split(" ") if(line_elems[0] == "TwoPunctures::par_b"): par_b = float(line_elems[-1]) if(line_elems[0] == "TwoPunctures::center_offset[0]"): -- GitLab