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

Do not zero-pad indices in BIDSPath entities anymore; do not warn about prepending missing dots for extensions #1215

Merged
merged 14 commits into from
Feb 22, 2024
Prev Previous commit
Next Next commit
revert some changes
sappelhoff committed Feb 22, 2024
commit 5c68b1470131cdd74729ac4c84363fe0dae1a69e
2 changes: 1 addition & 1 deletion mne_bids/path.py
Original file line number Diff line number Diff line change
@@ -966,7 +966,7 @@ def update(self, *, check=None, **kwargs):
if isinstance(val, str) and not val.isdigit():
raise ValueError(f"{key} is not an index (Got {val})")
elif isinstance(val, int):
kwargs[key] = f"{val}"
kwargs[key] = f"{val:02}"

# ensure extension starts with a '.'
extension = kwargs.get("extension")