Skip to content

Commit

Permalink
AnnotationSeries code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Nov 20, 2024
1 parent bb782e8 commit ae3262d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/gallery/general/plot_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,12 @@
# object with text information about a stimulus and add it to the stimulus group in
# the :py:class:`~pynwb.file.NWBFile`.

annotations = AnnotationSeries(name='airpuffs',
data=['Left Airpuff', 'Right Airpuff', 'Right Airpuff'],
description='Airpuff events delivered to the animal',
timestamps=[1.0, 3.0, 8.0])
annotations = AnnotationSeries(
name='airpuffs',
data=['Left Airpuff', 'Right Airpuff', 'Right Airpuff'],
description='Airpuff events delivered to the animal',
timestamps=[1.0, 3.0, 8.0],
)

nwbfile.add_stimulus(annotations)

Expand Down

0 comments on commit ae3262d

Please sign in to comment.