Skip to content

missed deprecation changes #12273

Closed

Description

@drammock

I stumbled upon this today, which should have changed between 1.5 and 1.6:

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

Activity

  1. hoechenberger commented on Dec 6, 2023

    @hoechenberger
    Member

    I don't think we should ever backport a forgotten API change. This violates semantic versioning.

  2. drammock commented on Dec 6, 2023

    @drammock
    MemberAuthor

    my thinking was "we told people it would change in 1.5, we just released 1.6 and the default is still None which 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.

  3. added this to the 1.7 milestone on Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions