Skip to content

Commit

Permalink
added a comment for sorting arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
PRAVEEN-mnl committed Oct 26, 2023
1 parent dc9ed34 commit ca9890e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/all_sky_search/pycbc_plot_kde_vals
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ elif args.sort_type == 'decreasing':
idx = numpy.argsort(kde_values)[::-1]
else:
idx = numpy.arange(len(kde_values))
# Sort each of the parameter arrays
param_arrays = [param[idx] for param in param_arrays]
param0 = param_arrays[0]
param1 = param_arrays[1] if len(param_arrays) > 1 else None
Expand Down

0 comments on commit ca9890e

Please sign in to comment.