Skip to content

Commit

Permalink
fix (gridsearch): Make misalignment between series and plot_prefs a w…
Browse files Browse the repository at this point in the history
…arning
  • Loading branch information
Jacob-Stevens-Haas committed Apr 26, 2024
1 parent 77753b8 commit bd79e8f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gen_experiments/gridsearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,18 @@ def run(
plot_data = []
# todo - improve how plot_prefs.plot_match interacts with series
# This is a horrible hack, assuming a params_or for each series, ino
if len(series_params.series_list) != len(plot_prefs.plot_match.params_or):
msg = (
"Trying to plot a subset of points tends to require the same"
"number of matchable parameter lists as series, lined up 1:1."
"You have a different number of each."
)
# TODO: write a warn_external function in mitosis for this:
warn(msg)
logger.warning(msg)
for series_data, params in zip(
series_params.series_list,
list(plot_prefs.plot_match.params_or),
strict=True,
):
key = series_data.name
logger.info(f"Searching for matching points in series: {key}")
Expand Down

0 comments on commit bd79e8f

Please sign in to comment.