diff --git a/nessai/proposal/flowproposal.py b/nessai/proposal/flowproposal.py index 37f0a43c..4f92cac4 100644 --- a/nessai/proposal/flowproposal.py +++ b/nessai/proposal/flowproposal.py @@ -644,7 +644,9 @@ def configure_reparameterisations(self, reparameterisations): matches = [] for pattern in patterns: r = re.compile(pattern) - matches += list(filter(r.match, self.model.names)) + matches += list( + filter(r.fullmatch, self.model.names) + ) default_config["parameters"] = matches else: logger.warning(