From eb622a7d4feae811192afe32e73b321152aa81fd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 22 Nov 2024 10:57:40 +0000 Subject: [PATCH] Format code with ruff --- pyneon/export/export_bids.py | 6 ++++-- source/tutorials/read_recording.ipynb | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pyneon/export/export_bids.py b/pyneon/export/export_bids.py index ef26ccb..f5da279 100644 --- a/pyneon/export/export_bids.py +++ b/pyneon/export/export_bids.py @@ -52,8 +52,10 @@ def export_motion_bids( motion_dir = Path(motion_dir) if not motion_dir.is_dir(): raise FileNotFoundError(f"Directory not found: {motion_dir}") - if motion_dir.name != 'motion': - raise RuntimeWarning(f"Directory name {motion_dir.name} is not 'motion' as specified by Motion-BIDS") + if motion_dir.name != "motion": + raise RuntimeWarning( + f"Directory name {motion_dir.name} is not 'motion' as specified by Motion-BIDS" + ) motion_tsv_path = motion_dir / f"{prefix}_motion.tsv" motion_json_path = motion_dir / f"{prefix}_motion.json" channels_tsv_path = motion_dir / f"{prefix}_channels.tsv" diff --git a/source/tutorials/read_recording.ipynb b/source/tutorials/read_recording.ipynb index 2cbdeab..7456ffa 100644 --- a/source/tutorials/read_recording.ipynb +++ b/source/tutorials/read_recording.ipynb @@ -461,7 +461,7 @@ "print(gaze.times[-1])\n", "\n", "# Crop the gaze data to the first 10 seconds\n", - "gaze_cropped = gaze.crop(0, 10, by=\"time\") # Crop by time\n", + "gaze_cropped = gaze.crop(0, 10, by=\"time\") # Crop by time\n", "print(gaze_cropped.times[-1])" ] },