Skip to content

Commit

Permalink
more True merge
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Jan 28, 2025
1 parent a6fae17 commit 3f921b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pynwb/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ def _check_external_file_starting_frame_length(self):
the number of files in 'external_file'.
"""
if self.external_file is None:
return True
return
if get_data_shape(self.external_file) == get_data_shape(self.starting_frame):
return True
return

return (
"%s '%s': The number of frame indices in 'starting_frame' should have "
Expand All @@ -164,7 +164,7 @@ def _check_external_file_format(self):
Check that format is 'external' when external_file is specified.
"""
if self.external_file is None:
return
return
if self.format == "external":
return

Expand Down

0 comments on commit 3f921b2

Please sign in to comment.