Skip to content

Commit

Permalink
replace sort_type with plot_order
Browse files Browse the repository at this point in the history
  • Loading branch information
PRAVEEN-mnl committed Nov 3, 2023
1 parent 2d4f3e4 commit 06e5bf2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/all_sky_search/pycbc_plot_kde_vals
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ kde_arrays = {

if args.sort_type == 'increasing':
idx = numpy.argsort(kde_values)
elif args.sort_type == 'decreasing':
elif args.plot_order == '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 06e5bf2

Please sign in to comment.