Skip to content

Commit

Permalink
Fixed calling pyroa parameters within weighting module
Browse files Browse the repository at this point in the history
  • Loading branch information
Zstone19 committed Jan 22, 2025
1 parent 92acbf5 commit 20c82bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pypetal/weighting/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def run_weighting_tot(output_dir,
warnings.warn('Assuming that the filenames are in the same order as the line names. Line names will be acquired in chronological order from the given directory, except the first will be the continuum', RuntimeWarning)
line_names = get_ordered_line_names(output_dir)

_, _, _, _, _, _, _, _, together_pyroa, _, _ = defaults.set_pyroa( pyroa_params, len(line_names) )
_, _, _, _, _, _, _, _, together_pyroa, _, _, _ = defaults.set_pyroa( pyroa_params, len(line_names) )

#---------------------------
#Get data fnames
Expand Down
2 changes: 1 addition & 1 deletion src/pypetal/weighting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def run_weighting_single( output_dir, cont_fname, line_fname,
#PyROA

if run_pyroa:
_, nburn, _, _, _, add_var, delay_dist, _, _, _, _ = defaults.set_pyroa(pyroa_params, 2)
_, nburn, _, _, _, add_var, delay_dist, _, _, _, _, _ = defaults.set_pyroa(pyroa_params, 2)
if isinstance(add_var, list):
add_var = add_var[pyroa_obj_ind-1]
if isinstance(delay_dist, list):
Expand Down

0 comments on commit 20c82bd

Please sign in to comment.