Skip to content

Commit

Permalink
Format code with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 22, 2024
1 parent 2f2e985 commit eb622a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pyneon/export/export_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion source/tutorials/read_recording.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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])"
]
},
Expand Down

0 comments on commit eb622a7

Please sign in to comment.