Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't ignore if pattern also startswith underscore #445

Merged
merged 3 commits into from
May 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion strax/run_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def _tags_match(dsets, patterns, pattern_type, ignore_underscore):


def _tag_match(tag, pattern, pattern_type, ignore_underscore):
if ignore_underscore and tag.startswith('_'):
if ignore_underscore and tag.startswith('_') and not pattern.startswith('_'):
tag = tag[1:]
if pattern_type == 'fnmatch':
return fnmatch.fnmatch(tag, pattern)
Expand Down