Skip to content

Commit

Permalink
Bug fix for optim_progress with n_response
Browse files Browse the repository at this point in the history
  • Loading branch information
kstone40 committed Aug 15, 2024
1 parent 8ac2bbc commit c162df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obsidian/plotting/plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def optim_progress(campaign: Campaign,
X_names = list(campaign.X.columns)

for id in response_ids:
if id >= campaign.n_response:
if id >= len(out_names):
raise ValueError(f'Response ID {id} is out of range')
if isinstance(color_feature_id, int):
if color_feature_id >= len(campaign.X_space):
Expand Down

0 comments on commit c162df3

Please sign in to comment.