Skip to content

Commit

Permalink
bug fix for plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryDayHall committed Oct 9, 2023
1 parent 6226208 commit 8e7c3c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jet_tools/CompareClusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1691,8 +1691,9 @@ def project_2d(show_params, best_slice, all_cols, variable_cols, score_cols,
mult_col = "AveSeperateJets"
# if we are taking the best slice remove all other table rows
if best_slice:
bg_values = convert_to_float(table[bg_col].to_numpy())
sg_values = convert_to_float(table[sg_col].to_numpy())
import ipdb; ipdb.set_trace()
bg_values = table[bg_col].values
sg_values = table[sg_col].values
combined = np.sqrt(0.53 * np.square(bg_values) + np.square(sg_values))
if isinstance(best_slice, bool):
best_idx = np.nanargmin(combined.tolist())
Expand Down Expand Up @@ -1954,7 +1955,7 @@ def plot_scan_triangles(eventWise, jet_name_base, jet_PS_mask=None,
if show_names is None:
show_names = []
for name in variable_cols:
values = table[:, all_cols.index(name)]
values = table[name]
values = {str(v) for v in values}
if len(values) > 1:
show_names.append(name)
Expand Down

0 comments on commit 8e7c3c0

Please sign in to comment.