From 55a79e8c39afc08b6afc956f20680e0adc6d0bcd Mon Sep 17 00:00:00 2001 From: xuyuon <116078673+xuyuon@users.noreply.github.com> Date: Fri, 30 Aug 2024 09:51:51 +0800 Subject: [PATCH] Fix transform initialization --- src/jimgw/single_event/runManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jimgw/single_event/runManager.py b/src/jimgw/single_event/runManager.py index 88770263..ea232441 100644 --- a/src/jimgw/single_event/runManager.py +++ b/src/jimgw/single_event/runManager.py @@ -223,6 +223,7 @@ def initialize_transforms( transform_class = getattr(transforms, transform["name"]) except AttributeError: raise ValueError(f"{transform['name']} not recognized.") + transform = transform.copy() transform.pop("name") sample_transforms.append(transform_class(**transform)) if self.run.likelihood_transforms: @@ -241,6 +242,7 @@ def initialize_transforms( transform_class = getattr(transforms, transform["name"]) except AttributeError: raise ValueError(f"{transform['name']} not recognized.") + transform = transform.copy() transform.pop("name") likelihood_transforms.append(transform_class(**transform)) return sample_transforms, likelihood_transforms