Skip to content

Conversation

@larsoner
Copy link
Member

Closes #1376

if datatype is not None:
datatype = _ensure_tuple(datatype)
search_str = f"**/{'|'.join(datatype)}/.*"
search_str = f"**/{'|'.join(datatype)}/*.*"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the real bug. All else is just cleanups + test

@larsoner
Copy link
Member Author

Yikes the benchmark test takes 60 seconds (!). It also no longer passes for me locally. I'll see if the speedup comes from

        paths = [
            Path(root, fn)
            for fn in glob.iglob(search_str, root_dir=root, recursive=True)
        ]

in which case it should be used in both code paths. But that would be weird...

@drammock
Copy link
Member

I'd also like to fixup a couple things about #1355 while this is open. I see you already restored the versionchanged (thanks!). My TODO list:

  • some of the changelog entries reference private functions, should reword / remove
  • the docstring for include_match is IMO very hard to understand, and the param name itself doesn't really help.

@codecov
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.47%. Comparing base (b75e4ca) to head (93d30b6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1379      +/-   ##
==========================================
+ Coverage   97.37%   97.47%   +0.09%     
==========================================
  Files          40       40              
  Lines        8966     9024      +58     
==========================================
+ Hits         8731     8796      +65     
+ Misses        235      228       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@larsoner
Copy link
Member Author

Okay should be good to go @drammock

Copy link
Member

@drammock drammock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one tiny docstring tweak. I'll apply it and merge. Thanks @larsoner

@drammock drammock merged commit 9619b0c into mne-tools:main Feb 25, 2025
2 checks passed
@larsoner larsoner deleted the bug branch February 25, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants