Skip to content

Commit

Permalink
Fixed chain processing error
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyuon committed Aug 19, 2024
1 parent b452856 commit 814c204
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/GW150914_D.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
production_chain = production_summary["chains"].reshape(-1, len(jim.parameter_names)).T
if jim.sample_transforms:
transformed_chain = jim.add_name(production_chain)
for transform in jim.sample_transforms:
for transform in reversed(jim.sample_transforms):
transformed_chain = transform.backward(transformed_chain)
result = transformed_chain
labels = list(transformed_chain.keys())
Expand Down
2 changes: 1 addition & 1 deletion example/GW150914_D_heterodyne.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
production_chain = production_summary["chains"].reshape(-1, len(jim.parameter_names)).T
if jim.sample_transforms:
transformed_chain = jim.add_name(production_chain)
for transform in jim.sample_transforms:
for transform in reversed(jim.sample_transforms):
transformed_chain = transform.backward(transformed_chain)
result = transformed_chain
labels = list(transformed_chain.keys())
Expand Down
2 changes: 1 addition & 1 deletion example/GW150914_Pv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
production_chain = production_summary["chains"].reshape(-1, len(jim.parameter_names)).T
if jim.sample_transforms:
transformed_chain = jim.add_name(production_chain)
for transform in jim.sample_transforms:
for transform in reversed(jim.sample_transforms):
transformed_chain = transform.backward(transformed_chain)
result = transformed_chain
labels = list(transformed_chain.keys())
Expand Down

0 comments on commit 814c204

Please sign in to comment.