Skip to content

Commit

Permalink
Fix transform initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyuon committed Aug 30, 2024
1 parent 9b19b9f commit 55a79e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jimgw/single_event/runManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 55a79e8

Please sign in to comment.