Repository navigation
Closed
Milestone
Description
I stumbled upon this today, which should have changed between 1.5 and 1.6:
Lines 310 to 337 in 7bf1b4a
| dep_msg = ( | |
| "The default for pick_channels will change from ordered=False to " | |
| "ordered=True in 1.5" | |
| ) | |
| if len(missing): | |
| if ordered is None: | |
| warn( | |
| f"{dep_msg} and this will result in an error because the " | |
| f"following channel names are missing:\n{missing}\n" | |
| "Either fix your included names or explicitly pass " | |
| "ordered=False.", | |
| FutureWarning, | |
| ) | |
| elif ordered: | |
| raise ValueError( | |
| "Missing channels from ch_names required by " | |
| "include:\n%s" % (missing,) | |
| ) | |
| if not ordered: | |
| out_sel = np.unique(sel) | |
| if ordered is None and not np.array_equal(out_sel, sel): | |
| warn( | |
| f"{dep_msg} and this will result in a change of behavior " | |
| "because the resulting channel order will not match. Either " | |
| "use a channel order that matches your instance or " | |
| "pass ordered=False.", | |
| FutureWarning, | |
| ) |
change probably should be backported. I've tweaked the release wiki's deprecation section to include a reminder about searching for FutureWarnings
Metadata
Metadata
Assignees
Labels
No labels
Activity
hoechenberger commentedon Dec 6, 2023
I don't think we should ever backport a forgotten API change. This violates semantic versioning.
drammock commentedon Dec 6, 2023
my thinking was "we told people it would change in 1.5, we just released 1.6 and the default is still
Nonewhich means they'll still be seeing the FutureWarning." But yeah, I guess an API change between 1.6.0 and 1.6.1 is worse.