Skip to content

Commit

Permalink
bug fix in adding duplicate range value
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclifford1 committed Jul 26, 2024
1 parent d6bd02d commit 0696633
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion IQM_Vis/utils/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def get_all_slider_values(transforms, num_steps=11):
stop=transforms['max']*float_stabiliser,
step=steps*float_stabiliser)
values = list(values/float_stabiliser)
values.append(transforms['max'])
if transforms['max'] not in values:
values.append(transforms['max'])
return values

def get_all_single_transform_params(transforms, num_steps=11):
Expand All @@ -186,6 +187,7 @@ def get_all_single_transform_params(transforms, num_steps=11):
steps = num_steps
for val in get_all_slider_values(trans_data, num_steps=steps):
list_of_single_trans.append({trans_name: val})

return list_of_single_trans

def compute_metric_for_human_correlation(data_store, transforms, metric_params, trans_str_values, metric):
Expand Down

0 comments on commit 0696633

Please sign in to comment.