Skip to content

Commit 92ed81b

Browse files
authored
Fix imageseries test warnings, update back compat (#1553)
1 parent 46627b5 commit 92ed81b

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/pynwb/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def __init__(self, **kwargs):
9797
warnings.warn(
9898
"%s '%s': The value for 'format' has been changed to 'external'. "
9999
"Setting a default value for 'format' is deprecated and will be changed "
100-
"to raising a ValueError in the next release."
100+
"to raising a ValueError in the next major release."
101101
% (self.__class__.__name__, self.name),
102102
DeprecationWarning,
103103
)
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tests/unit/test_image.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_external_file_no_frame(self):
5252
name='test_iS',
5353
unit='unit',
5454
external_file=['external_file'],
55+
format="external",
5556
timestamps=[1., 2., 3.]
5657
)
5758
self.assertListEqual(iS.starting_frame, [0])
@@ -78,6 +79,7 @@ def test_external_file_no_unit(self):
7879
iS = ImageSeries(
7980
name='test_iS',
8081
external_file=['external_file'],
82+
format="external",
8183
timestamps=list()
8284
)
8385
self.assertEqual(iS.unit, ImageSeries.DEFAULT_UNIT)
@@ -242,7 +244,7 @@ def test_external_file_default_format(self):
242244
msg = (
243245
"ImageSeries 'test_iS': The value for 'format' has been changed to 'external'. "
244246
"Setting a default value for 'format' is deprecated and will be changed to "
245-
"raising a ValueError in the next release."
247+
"raising a ValueError in the next major release."
246248
)
247249
with self.assertWarnsWith(DeprecationWarning, msg):
248250
iS = ImageSeries(

0 commit comments

Comments
 (0)