Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Jan 28, 2025
1 parent 2d99365 commit aba5228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/gallery/domain/brain_observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

# sphinx_gallery_thumbnail_path = 'figures/gallery_thumbnails_allenbrainobservatory.png'

import numpy as np

import allensdk.brain_observatory.stimulus_info as si
from allensdk.core.brain_observatory_cache import BrainObservatoryCache

Expand Down Expand Up @@ -71,7 +73,7 @@
data=dataset.get_stimulus_template(stimulus),
unit="NA",
format="raw",
rate=1.0,
rate=np.nan,
)

image_index = IndexSeries(
Expand Down
2 changes: 1 addition & 1 deletion src/pynwb/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def _check_time_series_dimension(self):
"""Check that the 0th dimension of data equals the length of timestamps, when applicable.
"""
if self.timestamps is None:
return True
return

data_shape = get_data_shape(data=self.fields["data"], strict_no_data_load=True)
timestamps_shape = get_data_shape(data=self.fields["timestamps"], strict_no_data_load=True)
Expand Down

0 comments on commit aba5228

Please sign in to comment.