From 760da6bade416c5115341ec91216facc668449ed Mon Sep 17 00:00:00 2001 From: jevans Date: Mon, 29 Sep 2014 07:37:17 -0400 Subject: [PATCH] better error message if array-style slice other than [:] --- glymur/jp2k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glymur/jp2k.py b/glymur/jp2k.py index b721742..87028e1 100644 --- a/glymur/jp2k.py +++ b/glymur/jp2k.py @@ -772,7 +772,7 @@ class Jp2k(Jp2kBox): # Should have a slice object where start = stop = step = None self.write(data) else: - msg = "Images currently must be written entirely at once." + msg = "Partial write operations are currently not allowed." raise TypeError(msg) def __getitem__(self, pargs):