diff --git a/glymur/codestream.py b/glymur/codestream.py index 506450d..f433eca 100644 --- a/glymur/codestream.py +++ b/glymur/codestream.py @@ -472,8 +472,6 @@ class Codestream: SPcod = f.read(n) kwargs['SPcod'] = np.frombuffer(SPcod, dtype=np.uint8) - # 0: - # 1: layers params = struct.unpack('>BHBBBBBB', SPcod[0:9]) kwargs['_layers'] = params[1] kwargs['_numresolutions'] = params[3] diff --git a/glymur/jp2k.py b/glymur/jp2k.py index dbfc74d..6eb23fd 100644 --- a/glymur/jp2k.py +++ b/glymur/jp2k.py @@ -152,7 +152,7 @@ class Jp2k(Jp2kBox): data : array Image data to be written to file. callbacks : bool, optional - If true, enable default info handler such that INFO messages + If true, enable default info handler such that INFO messages produced by the OpenJPEG library are output to the console. By default, OpenJPEG warning and error messages are captured by Python's own warning and error mechanisms.