From fdfab6af338f8135071b6e23e1374896cc5096df Mon Sep 17 00:00:00 2001 From: PierreGtch <25532709+PierreGtch@users.noreply.github.com> Date: Wed, 10 Apr 2024 18:08:55 +0200 Subject: [PATCH] [Fix] format string receiving incorrect number of args in bids interface (#563) * Fixes #552 * update whats_new.rst --- docs/source/whats_new.rst | 1 + moabb/datasets/bids_interface.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/source/whats_new.rst b/docs/source/whats_new.rst index 4f01174fc..6c4339a33 100644 --- a/docs/source/whats_new.rst +++ b/docs/source/whats_new.rst @@ -31,6 +31,7 @@ Bugs - Fix saving to BIDS runs with a description string in their name (:gh:`530` by `Pierre Guetschel`_) - Fix import of keras BatchNormalization for TF 2.13 and higher (:gh:`544` by `Brian Irvine`_) - Fix the doc summary tables of :class:`moabb.datasets.Lee2019_SSVEP` (:gh:`548` :gh:`547` :gh:`546` by `Pierre Guetschel`_) +- Fix format string receiving incorrect number of args in bids interface (:gh:`563` by `Pierre Guetschel`_) API changes ~~~~~~~~~~~ diff --git a/moabb/datasets/bids_interface.py b/moabb/datasets/bids_interface.py index 546132d87..082cc5d43 100644 --- a/moabb/datasets/bids_interface.py +++ b/moabb/datasets/bids_interface.py @@ -234,9 +234,10 @@ def save(self, sessions_data): for run, obj in runs.items(): if obj is None: log.warning( - "Skipping caching %s session " + "%s run %s because " - "it is None.", - (repr(self), session, run), + "Skipping caching %s session %s run %s because it is None.", + repr(self), + session, + run, ) continue