Description
Description of the problem
Hi there,
I was reading in the docstrings that with the update method, run
and split
are auto-converted to two digits. That doesn't seem to be case
Steps to reproduce
slight modification to the output below:
In [1]: temp = BIDSPath(root=bids_root)
In [2]: temp.update(subject='A0123', run=1)
Out[2]:
BIDSPath(
root: /some/path
datatype: None
basename: sub-A0123_run-1)
In [3]: temp.fpath
Out[3]: PosixPath('/some/path/sub-A0123/sub-A0123_run-1')
Expected results
I expect that the fpath and the basename representation to have the run with a padded zero
PosixPath('/some/path/sub-A0123/sub-A0123_run-01')
Actual results
PosixPath('/some/path/sub-A0123/sub-A0123_run-1')
Additional information
In [118]: mne.sys_info()
Platform macOS-15.5-arm64-arm-64bit
Python 3.12.10 (main, May 30 2025, 05:53:56) [Clang 20.1.4 ]
Executable /Users/teonbrooks/codespace/OcularLDT-project/.venv/bin/python3
CPU Apple M3 Pro (12 cores)
Memory 36.0 GiB
Core
├☑ mne 1.9.0 (latest release)
├☑ numpy 2.2.3 (unknown linalg bindings)
├☑ scipy 1.15.2
└☑ matplotlib 3.10.1 (backend=macosx)
Numerical (optional)
├☑ sklearn 1.6.1
├☑ pandas 2.2.3
├☑ h5io 0.2.4
├☑ h5py 3.13.0
└☐ unavailable numba, nibabel, nilearn, dipy, openmeeg, cupy
Visualization (optional)
└☐ unavailable pyvista, pyvistaqt, vtk, qtpy, ipympl, pyqtgraph, mne-qt-browser, ipywidgets, trame_client, trame_server, trame_vtk, trame_vuetify
Ecosystem (optional)
├☑ mne-bids 0.16.0
└☐ unavailable mne-nirs, mne-features, mne-connectivity, mne-icalabel, mne-bids-pipeline, neo, eeglabio, edfio, mffpy, pybv