pep8speaks: Hello @scaramallion! Thanks for submitting the PR.

 - In the file [`pydicom/tests/test_gdcm_pixel_data.py`](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py), following                are the PEP8 issues :
> [Line 275:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L275): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 287:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L287): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 291:1](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L291): [E303](https://duckduckgo.com/?q=pep8%20E303) too many blank lines (3)
> [Line 337:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L337): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 349:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L349): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 364:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L364): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 404:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L404): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 421:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L421): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 594:30](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L594): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 645:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_gdcm_pixel_data.py#L645): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'


 - In the file [`pydicom/tests/test_jpeg_ls_pixel_data.py`](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_jpeg_ls_pixel_data.py), following                are the PEP8 issues :
> [Line 202:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_jpeg_ls_pixel_data.py#L202): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 214:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_jpeg_ls_pixel_data.py#L214): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'


 - In the file [`pydicom/tests/test_numpy_pixel_data.py`](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py), following                are the PEP8 issues :
> [Line 513:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L513): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 529:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L529): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 566:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L566): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 588:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L588): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 640:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L640): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 659:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L659): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 721:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L721): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 736:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L736): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 760:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L760): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 782:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L782): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 807:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L807): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 822:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L822): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 846:39](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L846): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 868:40](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_numpy_pixel_data.py#L868): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'


 - In the file [`pydicom/tests/test_pillow_pixel_data.py`](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_pillow_pixel_data.py), following                are the PEP8 issues :
> [Line 311:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_pillow_pixel_data.py#L311): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 320:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_pillow_pixel_data.py#L320): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 369:34](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_pillow_pixel_data.py#L369): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 567:30](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_pillow_pixel_data.py#L567): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'


 - In the file [`pydicom/tests/test_rle_pixel_data.py`](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py), following                are the PEP8 issues :
> [Line 401:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L401): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 420:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L420): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 442:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L442): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 467:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L467): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 499:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L499): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 519:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L519): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 550:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L550): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 576:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L576): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 607:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L607): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 626:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L626): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 657:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L657): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 683:36](https://github.com/scaramallion/pydicom/blob/effde76c580ecb3cf2b449f7a4593c4d8a198149/pydicom/tests/test_rle_pixel_data.py#L683): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'



mrbean-bremen: If you are at it, you could also remove that unneeded `copy` at the end of the pillow handler (I introduced that unnessarily). The array can just be made writable before masking out the high bit.
diff --git a/doc/whatsnew/v1.2.0.rst b/doc/whatsnew/v1.2.0.rst
index c130343b9..436b53c46 100644
--- a/doc/whatsnew/v1.2.0.rst
+++ b/doc/whatsnew/v1.2.0.rst
@@ -25,6 +25,7 @@ Changes
   handler's ``is_available`` method.
 * ``DeferredDataElement`` class deprecated and will be removed in v1.3
   (:issue:`291`)
+* The use of numpypy with PyPy is no longer supported, use numpy instead.
 
 
 Enhancements
@@ -54,9 +55,12 @@ Fixes
   (:pull_request:`660`)
 * Improve performance for Python 3 when dealing with compressed multi-frame
   Pixel Data with pillow and jpeg-ls (:issue:`682`).
-* Improve performance of bit unpacking for non-PyPy2 interpreters
-  (:pull_request:`715`)
+* Improve performance of bit unpacking (:pull_request:`715`)
 * First character set no longer removed (:issue:`707`)
 * Fixed RLE decoded data having the wrong byte order (:pull_request:`729`)
 * Fixed RLE decoded data having the wrong planar configuration
   (:pull_request:`729`)
+* Fixed numpy arrays returned by the pixel data handlers sometimes being
+  read-only. Read-only arrays are still available for uncompressed transfer
+  syntaxes via a keyword argument for the numpy pixel data handler and should
+  help reduce memory consumption if required. (:issue:`717`)
diff --git a/pydicom/multival.py b/pydicom/multival.py
index d992fa6e2..178a1565b 100644
--- a/pydicom/multival.py
+++ b/pydicom/multival.py
@@ -3,7 +3,10 @@
 or any list of items that must all be the same type.
 """
 
-from collections import MutableSequence
+try:
+    from collections.abc import MutableSequence
+except ImportError:
+    from collections import MutableSequence
 
 
 class MultiValue(MutableSequence):
diff --git a/pydicom/pixel_data_handlers/gdcm_handler.py b/pydicom/pixel_data_handlers/gdcm_handler.py
index fc747716c..153c64a94 100644
--- a/pydicom/pixel_data_handlers/gdcm_handler.py
+++ b/pydicom/pixel_data_handlers/gdcm_handler.py
@@ -46,7 +46,6 @@ def is_available():
     return HAVE_NP and HAVE_GDCM
 
 
-
 def needs_to_convert_to_RGB(dicom_dataset):
     should_convert = (dicom_dataset.file_meta.TransferSyntaxUID in
                       should_convert_these_syntaxes_to_RGB)
@@ -174,6 +173,7 @@ def get_pixeldata(dicom_dataset):
         n_bytes *= dicom_dataset.SamplesPerPixel
     except Exception:
         pass
+
     if len(pixel_bytearray) > n_bytes:
         # We make sure that all the bytes after are in fact zeros
         padding = pixel_bytearray[n_bytes:]
@@ -183,7 +183,9 @@ def get_pixeldata(dicom_dataset):
             # We revert to the old behavior which should then result
             #   in a Numpy error later on.
             pass
+
     pixel_array = numpy.frombuffer(pixel_bytearray, dtype=numpy_dtype)
+
     length_of_pixel_array = pixel_array.nbytes
     expected_length = dicom_dataset.Rows * dicom_dataset.Columns
 
@@ -192,10 +194,13 @@ def get_pixeldata(dicom_dataset):
 
     if dicom_dataset.BitsAllocated > 8:
         expected_length *= (dicom_dataset.BitsAllocated // 8)
+
     if length_of_pixel_array != expected_length:
         raise AttributeError("Amount of pixel data %d does "
                              "not match the expected data %d" %
                              (length_of_pixel_array, expected_length))
+
     if should_change_PhotometricInterpretation_to_RGB(dicom_dataset):
         dicom_dataset.PhotometricInterpretation = "RGB"
-    return pixel_array
+
+    return pixel_array.copy()
diff --git a/pydicom/pixel_data_handlers/jpeg_ls_handler.py b/pydicom/pixel_data_handlers/jpeg_ls_handler.py
index 29c919dcc..e7285eddf 100644
--- a/pydicom/pixel_data_handlers/jpeg_ls_handler.py
+++ b/pydicom/pixel_data_handlers/jpeg_ls_handler.py
@@ -137,7 +137,7 @@ def get_pixeldata(dicom_dataset):
             dicom_dataset.PixelData)
         decompressed_image = jpeg_ls.decode(
             numpy.frombuffer(CompressedPixelData, dtype=numpy.uint8))
-        UncompressedPixelData = decompressed_image.tobytes()
+        UncompressedPixelData.extend(decompressed_image.tobytes())
 
     pixel_array = numpy.frombuffer(UncompressedPixelData, numpy_format)
     if should_change_PhotometricInterpretation_to_RGB(dicom_dataset):
diff --git a/pydicom/pixel_data_handlers/numpy_handler.py b/pydicom/pixel_data_handlers/numpy_handler.py
index d60b5a9ce..8822f1df2 100644
--- a/pydicom/pixel_data_handlers/numpy_handler.py
+++ b/pydicom/pixel_data_handlers/numpy_handler.py
@@ -38,6 +38,7 @@ elements have values given in the table below.
 
 from platform import python_implementation
 from sys import byteorder
+import warnings
 
 try:
     import numpy as np
@@ -243,7 +244,7 @@ def unpack_bits(bytestream):
     return arr
 
 
-def get_pixeldata(ds):
+def get_pixeldata(ds, read_only=False):
     """Return an ndarray of the Pixel Data.
 
     Parameters
@@ -251,6 +252,12 @@ def get_pixeldata(ds):
     ds : dataset.Dataset
         The DICOM dataset containing an Image Pixel module and the Pixel Data
         to be converted.
+    read_only : bool, optional
+        If False (default) then returns a writeable array that no longer uses
+        the original memory. If True and the value of (0028,0100) *Bits
+        Allocated* > 1 then returns a read-only array that uses the original
+        memory buffer of the pixel data. If *Bits Allocated* = 1 then always
+        returns a writeable array.
 
     Returns
     -------
@@ -313,4 +320,7 @@ def get_pixeldata(ds):
     if should_change_PhotometricInterpretation_to_RGB(ds):
         ds.PhotometricInterpretation = "RGB"
 
+    if not read_only and ds.BitsAllocated > 1:
+        return arr.copy()
+
     return arr
diff --git a/pydicom/pixel_data_handlers/pillow_handler.py b/pydicom/pixel_data_handlers/pillow_handler.py
index ba78c1b71..b5e03963b 100644
--- a/pydicom/pixel_data_handlers/pillow_handler.py
+++ b/pydicom/pixel_data_handlers/pillow_handler.py
@@ -188,28 +188,32 @@ def get_pixeldata(dicom_dataset):
                 UncompressedPixelData.extend(decompressed_image.tobytes())
         else:
             # single compressed frame
-            UncompressedPixelData = pydicom.encaps.defragment_data(
+            pixel_data = pydicom.encaps.defragment_data(
                 dicom_dataset.PixelData)
-            UncompressedPixelData = generic_jpeg_file_header + \
-                UncompressedPixelData[frame_start_from:]
+            pixel_data = generic_jpeg_file_header + \
+                pixel_data[frame_start_from:]
             try:
-                fio = io.BytesIO(UncompressedPixelData)
+                fio = io.BytesIO(pixel_data)
                 decompressed_image = Image.open(fio)
             except IOError as e:
                 raise NotImplementedError(e.strerror)
-            UncompressedPixelData = decompressed_image.tobytes()
+            UncompressedPixelData.extend(decompressed_image.tobytes())
     except Exception:
         raise
+
     logger.debug(
-        "Successfully read %s pixel bytes",
-        len(UncompressedPixelData))
-    pixel_array = numpy.copy(
-        numpy.frombuffer(UncompressedPixelData, numpy_format))
+        "Successfully read %s pixel bytes", len(UncompressedPixelData)
+    )
+
+    pixel_array = numpy.frombuffer(UncompressedPixelData, numpy_format)
+
     if (transfer_syntax in
             PillowJPEG2000TransferSyntaxes and
             dicom_dataset.BitsStored == 16):
         # WHY IS THIS EVEN NECESSARY??
         pixel_array &= 0x7FFF
+
     if should_change_PhotometricInterpretation_to_RGB(dicom_dataset):
         dicom_dataset.PhotometricInterpretation = "RGB"
+
     return pixel_array

"underlying array is read-only" while modifying pixel value in pydicom version 1.1.0
<!-- Instructions For Filing a Bug: https://github.com/pydicom/pydicom/blob/master/CONTRIBUTING.md#filing-bugs -->
I tried to run a demo about reading dicom file, modify the pixel value and write new pixel data to another dicom file, however it failed in pydicom version 1.1.0 while works well for version 0.9.9-1.
In order to modify the pixel data in version 1.1.0 or later, what modification should I do?
Looking forward to your reply, thanks.

p.s. in order to run version 0.9.9-1, I just changed the module name from pydicom to dicom as recommended.
#### Description
<!-- Example: Attribute Error thrown when printing (0x0010, 0x0020) patient Id> 0-->

#### Steps/Code to Reproduce
<!--
Example:
```py
from io import BytesIO
from pydicom import dcmread

bytestream = b'\x02\x00\x02\x00\x55\x49\x16\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31' \
             b'\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x31\x2e\x39\x00\x02\x00\x10\x00' \
             b'\x55\x49\x12\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38' \
             b'\x2e\x31\x2e\x32\x00\x20\x20\x10\x00\x02\x00\x00\x00\x01\x00\x20\x20' \
             b'\x20\x00\x06\x00\x00\x00\x4e\x4f\x52\x4d\x41\x4c'

fp = BytesIO(bytestream)
ds = dcmread(fp, force=True)

print(ds.PatientID)
```
If the code is too long, feel free to put it in a public gist and link
it in the issue: https://gist.github.com

When possible use pydicom testing examples to reproduce the errors. Otherwise, provide
an anonymous version of the data in order to replicate the errors.
-->
```
import pydicom
import pylab
ds = pydicom.dcmread("IMG.DCM")
 
##查看有哪些属性
print(ds.dir("pat"))
 
##查看对应属性的具体值
print(ds.PatientName)
 
##将属性值给某个元素
data_element = ds.data_element("PatientName")  # or data_element = ds[0x10,0x10]
print(data_element.VR, data_element.value)
 
##删除属性
#del ds.SoftwareVersions
 
##原始二进制文件
pixel_bytes = ds.PixelData
 
##CT值组成了一个矩阵
pix = ds.pixel_array
 
##读取显示图片
pylab.imshow(ds.pixel_array, cmap=pylab.cm.bone)
#pylab.show()
 
##修改图片中的元素，不能直接使用data_array,需要转换成PixelData
print('ds.pixel_array.shape =', ds.pixel_array.shape)
for n,val in enumerate(ds.pixel_array.flat): #example: zero anything < 300
    if val < 300:
        ds.pixel_array.flat[n] = 0
ds.PixelData = ds.pixel_array.tostring()
ds.save_as("IMG_NEW.DCM")
```
#### Expected Results
<!-- Please paste or describe the expected results.
Example: No error is thrown and the name of the patient is printed.-->
IMG_NEW.DCM is written successfully
#### Actual Results
<!-- Please paste or specifically describe the actual output or traceback.
(Use %xmode to deactivate ipython's trace beautifier)
Example: ```AttributeError: 'FileDataset' object has no attribute 'PatientID'```
-->
Traceback (most recent call last):
  File "readDicom.py", line 34, in <module>
    ds.pixel_array.flat[n] = 0
ValueError: underlying array is read-only

#### Versions
<!--
Please run the following snippet and paste the output below.
import platform; print(platform.platform())
import sys; print("Python", sys.version)
import pydicom; print("pydicom", pydicom.__version__)
-->
python 3.6.3
pydicom 1.1.0

<!-- Thanks for contributing! -->

diff --git a/pydicom/tests/test_gdcm_pixel_data.py b/pydicom/tests/test_gdcm_pixel_data.py
index 5c87f7e52..4d4c41fda 100644
--- a/pydicom/tests/test_gdcm_pixel_data.py
+++ b/pydicom/tests/test_gdcm_pixel_data.py
@@ -271,6 +271,8 @@ class GDCM_JPEG_LS_Tests_with_gdcm(unittest.TestCase):
             "using GDCM Decoded pixel data is not "
             "all {0} (mean == {1})".format(b.mean(), a.mean()))
 
+        assert a.flags.writeable
+
     def test_emri_JPEG_LS_PixelArray_with_gdcm(self):
         a = self.emri_jpeg_ls_lossless.pixel_array
         b = self.emri_small.pixel_array
@@ -280,6 +282,8 @@ class GDCM_JPEG_LS_Tests_with_gdcm(unittest.TestCase):
             "Decoded pixel data is not all {0} "
             "(mean == {1})".format(b.mean(), a.mean()))
 
+        assert a.flags.writeable
+
 
 @pytest.mark.skipif(not HAVE_GDCM, reason=gdcm_missing_message)
 class GDCM_JPEG2000Tests_with_gdcm(unittest.TestCase):
@@ -326,6 +330,8 @@ class GDCM_JPEG2000Tests_with_gdcm(unittest.TestCase):
             "Decoded pixel data is not all {0} "
             "(mean == {1})".format(b.mean(), a.mean()))
 
+        assert a.flags.writeable
+
     def test_emri_JPEG2000PixelArray(self):
         a = self.emri_jpeg_2k_lossless.pixel_array
         b = self.emri_small.pixel_array
@@ -335,6 +341,8 @@ class GDCM_JPEG2000Tests_with_gdcm(unittest.TestCase):
             "Decoded pixel data is not all {0} "
             "(mean == {1})".format(b.mean(), a.mean()))
 
+        assert a.flags.writeable
+
     def test_jpeg2000_lossy(self):
         a = self.sc_rgb_jpeg2k_gdcm_KY.pixel_array
         b = self.ground_truth_sc_rgb_jpeg2k_gdcm_KY_gdcm.pixel_array
@@ -347,6 +355,8 @@ class GDCM_JPEG2000Tests_with_gdcm(unittest.TestCase):
                 "Decoded pixel data is not all {0} "
                 "(mean == {1})".format(b.mean(), a.mean()))
 
+        assert a.flags.writeable
+
 
 @pytest.mark.skipif(not HAVE_GDCM, reason=gdcm_missing_message)
 class GDCM_JPEGlossyTests_with_gdcm(unittest.TestCase):
@@ -384,11 +394,16 @@ class GDCM_JPEGlossyTests_with_gdcm(unittest.TestCase):
         self.assertEqual(a[420, 140], 244)
         self.assertEqual(a[230, 120], 95)
 
+        assert a.flags.writeable
+
     def test_JPEGBaselineColor3DPixelArray(self):
         self.assertEqual(
             self.color_3d_jpeg.PhotometricInterpretation,
             "YBR_FULL_422")
         a = self.color_3d_jpeg.pixel_array
+
+        assert a.flags.writeable
+
         self.assertEqual(a.shape, (120, 480, 640, 3))
         a = _convert_YBR_FULL_to_RGB(a)
         # this test points were manually identified in Osirix viewer
@@ -567,6 +582,9 @@ def test_PI_RGB(test_with_gdcm,
     t = dcmread(image)
     assert t.PhotometricInterpretation == PhotometricInterpretation
     a = t.pixel_array
+
+    assert a.flags.writeable
+
     assert a.shape == (100, 100, 3)
     if convert_yuv_to_rgb:
         a = _convert_YBR_FULL_to_RGB(a)
@@ -614,3 +632,5 @@ class GDCM_JPEGlosslessTests_with_gdcm(unittest.TestCase):
         # this test points were manually identified in Osirix viewer
         self.assertEqual(a[420, 140], 227)
         self.assertEqual(a[230, 120], 105)
+
+        assert a.flags.writeable
diff --git a/pydicom/tests/test_jpeg_ls_pixel_data.py b/pydicom/tests/test_jpeg_ls_pixel_data.py
index 512acf1a5..e7f0a4eda 100644
--- a/pydicom/tests/test_jpeg_ls_pixel_data.py
+++ b/pydicom/tests/test_jpeg_ls_pixel_data.py
@@ -198,6 +198,8 @@ class jpeg_ls_JPEG_LS_Tests_with_jpeg_ls(unittest.TestCase):
             "Decoded pixel data is not all {0} "
             "(mean == {1})".format(b.mean(), a.mean()))
 
+        assert a.flags.writeable
+
     def test_emri_JPEG_LS_PixelArray(self):
         a = self.emri_jpeg_ls_lossless.pixel_array
         b = self.emri_small.pixel_array
@@ -207,6 +209,8 @@ class jpeg_ls_JPEG_LS_Tests_with_jpeg_ls(unittest.TestCase):
             "Decoded pixel data is not all {0} "
             "(mean == {1})".format(b.mean(), a.mean()))
 
+        assert a.flags.writeable
+
 
 @pytest.mark.skipif(
     not test_jpeg_ls_decoder,
diff --git a/pydicom/tests/test_numpy_pixel_data.py b/pydicom/tests/test_numpy_pixel_data.py
index 09bd11813..054f7133c 100644
--- a/pydicom/tests/test_numpy_pixel_data.py
+++ b/pydicom/tests/test_numpy_pixel_data.py
@@ -509,6 +509,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             assert (600, 800) == arr.shape
             assert 244 == arr[0].min() == arr[0].max()
             assert (1, 246, 1) == tuple(arr[300, 491:494])
@@ -522,6 +524,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             assert (2, 600, 800) == arr.shape
             # Frame 1
             assert 244 == arr[0, 0].min() == arr[0, 0].max()
@@ -556,6 +560,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             assert (255, 0, 0) == tuple(arr[5, 50, :])
             assert (255, 128, 128) == tuple(arr[15, 50, :])
             assert (0, 255, 0) == tuple(arr[25, 50, :])
@@ -575,6 +581,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             # Frame 1
             frame = arr[0]
             assert (255, 0, 0) == tuple(frame[5, 50, :])
@@ -624,6 +632,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             assert arr.max() == 1
             assert arr.min() == 0
 
@@ -640,6 +650,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             assert arr.max() == 1
             assert arr.min() == 0
 
@@ -699,6 +711,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             assert (422, 319, 361) == tuple(arr[0, 31:34])
             assert (366, 363, 322) == tuple(arr[31, :3])
             assert (1369, 1129, 862) == tuple(arr[-1, -3:])
@@ -711,6 +725,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             # Frame 1
             assert (206, 197, 159) == tuple(arr[0, 0, 31:34])
             assert (49, 78, 128) == tuple(arr[0, 31, :3])
@@ -732,6 +748,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             assert (65535, 0, 0) == tuple(arr[5, 50, :])
             assert (65535, 32896, 32896) == tuple(arr[15, 50, :])
             assert (0, 65535, 0) == tuple(arr[25, 50, :])
@@ -751,6 +769,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             # Frame 1
             assert (65535, 0, 0) == tuple(arr[0, 5, 50, :])
             assert (65535, 32896, 32896) == tuple(arr[0, 15, 50, :])
@@ -773,6 +793,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             assert (1249000, 1249000, 1250000) == tuple(arr[0, :3])
             assert (1031000, 1029000, 1027000) == tuple(arr[4, 3:6])
             assert (803000, 801000, 798000) == tuple(arr[-1, -3:])
@@ -785,6 +807,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             # Frame 1
             assert (1249000, 1249000, 1250000) == tuple(arr[0, 0, :3])
             assert (1031000, 1029000, 1027000) == tuple(arr[0, 4, 3:6])
@@ -806,6 +830,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             ar = ds.pixel_array
 
+            assert ar.flags.writeable
+
             assert (4294967295, 0, 0) == tuple(ar[5, 50, :])
             assert (4294967295, 2155905152, 2155905152) == tuple(ar[15, 50, :])
             assert (0, 4294967295, 0) == tuple(ar[25, 50, :])
@@ -825,6 +851,8 @@ class TestNumpy_NumpyHandler(object):
             ds.file_meta.TransferSyntaxUID = uid
             arr = ds.pixel_array
 
+            assert arr.flags.writeable
+
             # Frame 1
             assert (4294967295, 0, 0) == tuple(arr[0, 5, 50, :])
             assert (4294967295, 2155905152, 2155905152) == tuple(
@@ -877,6 +905,15 @@ class TestNumpy_NumpyHandler(object):
 
         assert ds.pixel_array.max() == 1
 
+    def test_read_only(self):
+        """Test for #717, returned array read-only."""
+        ds = dcmread(EXPL_8_1_1F)
+        arr = ds.pixel_array
+        assert 0 != arr[0, 0]
+        arr[0, 0] = 0
+        assert 0 == arr[0, 0]
+        assert arr.flags.writeable
+
 
 # Tests for numpy_handler module with Numpy available
 @pytest.mark.skipif(not HAVE_NP, reason='Numpy is not available')
@@ -906,6 +943,24 @@ class TestNumpy_GetPixelData(object):
                            match=' the transfer syntax is not supported'):
             get_pixeldata(ds)
 
+    def test_bad_length_raises(self):
+        """Test bad pixel data length raises exception."""
+        ds = dcmread(EXPL_8_1_1F)
+        # Too short
+        ds.PixelData = ds.PixelData[:-1]
+        msg = (
+            r"The length of the pixel data in the dataset doesn't match the "
+            r"expected amount \(479999 vs. 480000 bytes\). The dataset may be "
+            r"corrupted or there may be an issue with the pixel data handler."
+        )
+        with pytest.raises(ValueError, match=msg):
+            get_pixeldata(ds)
+
+        # Too long
+        ds.PixelData += b'\x00\x00'
+        with pytest.raises(ValueError, match=r"480001 vs. 480000 bytes"):
+            get_pixeldata(ds)
+
     def test_change_photometric_interpretation(self):
         """Test get_pixeldata changes PhotometricInterpretation if required."""
         def to_rgb(ds):
@@ -928,6 +983,29 @@ class TestNumpy_GetPixelData(object):
 
         NP_HANDLER.should_change_PhotometricInterpretation_to_RGB = orig_fn
 
+    def test_array_read_only(self):
+        """Test returning a read only array for BitsAllocated > 8."""
+        ds = dcmread(EXPL_8_1_1F)
+        arr = get_pixeldata(ds, read_only=False)
+        assert arr.flags.writeable
+        assert 0 != arr[10]
+        arr[10] = 0
+        assert 0 == arr[10]
+
+        arr = get_pixeldata(ds, read_only=True)
+        assert not arr.flags.writeable
+        with pytest.raises(ValueError, match="is read-only"):
+            arr[10] = 0
+
+    def test_array_read_only_bit_packed(self):
+        """Test returning a read only array for BitsAllocated = 1."""
+        ds = dcmread(EXPL_1_1_1F)
+        arr = get_pixeldata(ds, read_only=False)
+        assert arr.flags.writeable
+
+        arr = get_pixeldata(ds, read_only=True)
+        assert arr.flags.writeable
+
 
 REFERENCE_PACK_UNPACK = [
     (b'', []),
diff --git a/pydicom/tests/test_pillow_pixel_data.py b/pydicom/tests/test_pillow_pixel_data.py
index 25e39cff0..55514dfe0 100644
--- a/pydicom/tests/test_pillow_pixel_data.py
+++ b/pydicom/tests/test_pillow_pixel_data.py
@@ -307,12 +307,16 @@ class Test_JPEG2000Tests_with_pillow(object):
         b = self.mr_small.pixel_array
         assert np.array_equal(a, b)
 
+        assert a.flags.writeable
+
     def test_emri_JPEG2000PixelArray(self):
         """Test decoding JPEG2K with pillow handler succeeds."""
         a = self.emri_jpeg_2k_lossless.pixel_array
         b = self.emri_small.pixel_array
         assert np.array_equal(a, b)
 
+        assert a.flags.writeable
+
     def test_jpeg2000_lossy(self):
         """Test decoding JPEG2K lossy with pillow handler fails."""
         with pytest.raises(NotImplementedError):
@@ -358,6 +362,9 @@ class Test_JPEGlossyTests_with_pillow(object):
         assert "YBR_FULL_422" == self.color_3d_jpeg.PhotometricInterpretation
 
         a = self.color_3d_jpeg.pixel_array
+
+        assert a.flags.writeable
+
         assert (120, 480, 640, 3) == a.shape
         # this test points were manually identified in Osirix viewer
         assert (41, 41, 41) == tuple(a[3, 159, 290, :])
@@ -552,6 +559,8 @@ def test_PI_RGB(test_with_pillow,
     assert t.PhotometricInterpretation == PhotometricInterpretation
     a = t.pixel_array
     assert a.shape == (100, 100, 3)
+
+    assert a.flags.writeable
     """
     This complete test never gave a different result than
     just the 10 point test below
diff --git a/pydicom/tests/test_rle_pixel_data.py b/pydicom/tests/test_rle_pixel_data.py
index b94f0f430..266903930 100644
--- a/pydicom/tests/test_rle_pixel_data.py
+++ b/pydicom/tests/test_rle_pixel_data.py
@@ -397,6 +397,8 @@ class TestNumpy_RLEHandler(object):
         ref = _get_pixel_array(OB_EXPL_LITTLE_1F)
         arr = ds.pixel_array
 
+        assert arr.flags.writeable
+
         assert np.array_equal(arr, ref)
         assert (600, 800) == arr.shape
         assert 244 == arr[0].min() == arr[0].max()
@@ -413,6 +415,8 @@ class TestNumpy_RLEHandler(object):
         ref = _get_pixel_array(OB_EXPL_LITTLE_2F)
         arr = ds.pixel_array
 
+        assert arr.flags.writeable
+
         assert np.array_equal(arr, ref)
         assert (2, 600, 800) == arr.shape
         assert 244 == arr[0, 0].min() == arr[0, 0].max()
@@ -432,6 +436,8 @@ class TestNumpy_RLEHandler(object):
         ref = _get_pixel_array(SC_EXPL_LITTLE_1F)
         arr = ds.pixel_array
 
+        assert arr.flags.writeable
+
         assert np.array_equal(arr, ref)
         assert (255, 0, 0) == tuple(arr[5, 50, :])
         assert (255, 128, 128) == tuple(arr[15, 50, :])
@@ -454,6 +460,8 @@ class TestNumpy_RLEHandler(object):
         ref = _get_pixel_array(SC_EXPL_LITTLE_2F)
         arr = ds.pixel_array
 
+        assert arr.flags.writeable
+
         assert np.array_equal(arr, ref)
 
         # Frame 1
@@ -483,6 +491,8 @@ class TestNumpy_RLEHandler(object):
         ref = _get_pixel_array(MR_EXPL_LITTLE_1F)
         arr = ds.pixel_array
 
+        assert arr.flags.writeable
+
         assert np.array_equal(arr, ref)
         assert (64, 64) == arr.shape
 
@@ -500,6 +510,8 @@ class TestNumpy_RLEHandler(object):
         ref = _get_pixel_array(EMRI_EXPL_LITTLE_10F)
         arr = ds.pixel_array
 
+        assert arr.flags.writeable
+
         assert np.array_equal(arr, ref)
         assert (10, 64, 64) == arr.shape
 
@@ -528,6 +540,8 @@ class TestNumpy_RLEHandler(object):
         arr = ds.pixel_array
         ref = _get_pixel_array(SC_EXPL_LITTLE_16_1F)
 
+        assert arr.flags.writeable
+
         assert np.array_equal(ds.pixel_array, ref)
 
         assert (65535, 0, 0) == tuple(arr[5, 50, :])
@@ -551,6 +565,8 @@ class TestNumpy_RLEHandler(object):
         arr = ds.pixel_array
         ref = _get_pixel_array(SC_EXPL_LITTLE_16_2F)
 
+        assert arr.flags.writeable
+
         assert np.array_equal(ds.pixel_array, ref)
 
         # Frame 1
@@ -579,6 +595,8 @@ class TestNumpy_RLEHandler(object):
         ref = _get_pixel_array(RTDOSE_EXPL_LITTLE_1F)
         arr = ds.pixel_array
 
+        assert arr.flags.writeable
+
         assert np.array_equal(arr, ref)
         assert (10, 10) == arr.shape
         assert (1249000, 1249000, 1250000) == tuple(arr[0, :3])
@@ -595,6 +613,8 @@ class TestNumpy_RLEHandler(object):
         ref = _get_pixel_array(RTDOSE_EXPL_LITTLE_15F)
         arr = ds.pixel_array
 
+        assert arr.flags.writeable
+
         assert np.array_equal(arr, ref)
         assert (15, 10, 10) == arr.shape
 
@@ -623,6 +643,8 @@ class TestNumpy_RLEHandler(object):
         arr = ds.pixel_array
         ref = _get_pixel_array(SC_EXPL_LITTLE_32_1F)
 
+        assert arr.flags.writeable
+
         assert np.array_equal(ds.pixel_array, ref)
 
         assert (4294967295, 0, 0) == tuple(arr[5, 50, :])
@@ -646,6 +668,8 @@ class TestNumpy_RLEHandler(object):
         arr = ds.pixel_array
         ref = _get_pixel_array(SC_EXPL_LITTLE_32_2F)
 
+        assert arr.flags.writeable
+
         assert np.array_equal(ds.pixel_array, ref)
 
         # Frame 1

pip install -e .
parse_log_pytest
requirements.txt
numpy>=1.16.0 pytest pytest-cov
apt-get update apt-get install -y gcc
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
importlib-metadata==4.8.3
iniconfig==1.1.1
numpy==1.19.5
packaging==21.3
pluggy==1.0.0
py==1.11.0
-e git+https://github.com/pydicom/pydicom.git@38d9eaa4416971b306f86a9e80381503efb79f7b#egg=pydicom
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: pydicom
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - coverage==6.2
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - numpy==1.19.5
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/pydicom

pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_8bit_1sample_1frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_8bit_1sample_2frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_8bit_3sample_1frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_8bit_3sample_2frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_16bit_1sample_1frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_16bit_1sample_10frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_16bit_3sample_1frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_16bit_3sample_2frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_32bit_1sample_1frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_32bit_1sample_15frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_32bit_3sample_1frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_32bit_3sample_2frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_read_only pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetPixelData::test_array_read_only pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetPixelData::test_array_read_only_bit_packed
pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEG_LS_Tests_no_gdcm::test_JPEG_LS_PixelArray pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEG_LS_Tests_no_gdcm::test_emri_JPEG_LS_PixelArray pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEG2000Tests_no_gdcm::test_JPEG2000 pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEG2000Tests_no_gdcm::test_JPEG2000PixelArray pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEG2000Tests_no_gdcm::test_emri_JPEG2000PixelArray pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEG2000Tests_no_gdcm::test_jpeg2000_lossy pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEGlossyTests_no_gdcm::test_JPEGBaselineColor3DPixelArray pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEGlossyTests_no_gdcm::test_JPEGlossy pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEGlossyTests_no_gdcm::test_JPEGlossyPixelArray pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEGlosslessTests_no_gdcm::testJPEGlossless pydicom/tests/test_gdcm_pixel_data.py::GDCM_JPEGlosslessTests_no_gdcm::testJPEGlosslessPixelArray pydicom/tests/test_jpeg_ls_pixel_data.py::jpeg_ls_JPEG_LS_Tests_no_jpeg_ls::test_JPEG_LS_PixelArray pydicom/tests/test_jpeg_ls_pixel_data.py::jpeg_ls_JPEG2000Tests_no_jpeg_ls::test_JPEG2000PixelArray pydicom/tests/test_jpeg_ls_pixel_data.py::jpeg_ls_JPEG2000Tests_no_jpeg_ls::test_emri_JPEG2000PixelArray pydicom/tests/test_jpeg_ls_pixel_data.py::jpeg_ls_JPEGlossyTests_no_jpeg_ls::testJPEGBaselineColor3DPixelArray pydicom/tests/test_jpeg_ls_pixel_data.py::jpeg_ls_JPEGlossyTests_no_jpeg_ls::testJPEGlossy pydicom/tests/test_jpeg_ls_pixel_data.py::jpeg_ls_JPEGlossyTests_no_jpeg_ls::testJPEGlossyPixelArray pydicom/tests/test_jpeg_ls_pixel_data.py::jpeg_ls_JPEGlosslessTests_no_jpeg_ls::testJPEGlossless pydicom/tests/test_jpeg_ls_pixel_data.py::jpeg_ls_JPEGlosslessTests_no_jpeg_ls::testJPEGlosslessPixelArray pydicom/tests/test_numpy_pixel_data.py::test_unsupported_syntaxes pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_environment pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_can_access_supported_dataset pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_jpeg_dcmtk.dcm-data0] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/JPEG-lossy.dcm-data1] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_jpeg_gdcm.dcm-data2] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/MR_small_jpeg_ls_lossless.dcm-data3] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/emri_small_jpeg_2k_lossless.dcm-data4] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/JPEG2000.dcm-data5] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/MR_small_RLE.dcm-data6] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_pixel_array_raises pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_environment pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_unsupported_syntax_raises pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_dataset_pixel_array_handler_needs_convert pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_jpeg_dcmtk.dcm-data0] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/JPEG-lossy.dcm-data1] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_jpeg_gdcm.dcm-data2] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/MR_small_jpeg_ls_lossless.dcm-data3] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/emri_small_jpeg_2k_lossless.dcm-data4] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/JPEG2000.dcm-data5] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/MR_small_RLE.dcm-data6] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_pixel_array_8bit_un_signed pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_pixel_array_16bit_un_signed pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_pixel_array_32bit_un_signed pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_8bit_3sample_1frame_odd_size pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/liver_1frame.dcm-data0] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/liver.dcm-data1] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/OBXXXX1A.dcm-data2] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/SC_rgb_small_odd.dcm-data3] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/OBXXXX1A_2frame.dcm-data4] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/SC_rgb.dcm-data5] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/SC_rgb_2frame.dcm-data6] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/MR_small.dcm-data7] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/emri_small.dcm-data8] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/SC_rgb_16bit_2frame.dcm-data9] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/rtdose_1frame.dcm-data10] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/rtdose.dcm-data11] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_properties[/pydicom/pydicom/data/test_files/SC_rgb_32bit_2frame.dcm-data12] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_1bit_1sample_1frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_little_1bit_1sample_3frame pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/liver_1frame.dcm-/pydicom/pydicom/data/test_files/liver_expb_1frame.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/liver.dcm-/pydicom/pydicom/data/test_files/liver_expb.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/OBXXXX1A.dcm-/pydicom/pydicom/data/test_files/OBXXXX1A_expb.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/OBXXXX1A_2frame.dcm-/pydicom/pydicom/data/test_files/OBXXXX1A_expb_2frame.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/SC_rgb.dcm-/pydicom/pydicom/data/test_files/SC_rgb_expb.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/SC_rgb_2frame.dcm-/pydicom/pydicom/data/test_files/SC_rgb_expb_2frame.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/MR_small.dcm-/pydicom/pydicom/data/test_files/MR_small_expb.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/emri_small.dcm-/pydicom/pydicom/data/test_files/emri_small_big_endian.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/SC_rgb_16bit_2frame.dcm-/pydicom/pydicom/data/test_files/SC_rgb_expb_16bit_2frame.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/rtdose_1frame.dcm-/pydicom/pydicom/data/test_files/rtdose_expb_1frame.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/rtdose.dcm-/pydicom/pydicom/data/test_files/rtdose_expb.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_big_endian_datasets[/pydicom/pydicom/data/test_files/SC_rgb_32bit_2frame.dcm-/pydicom/pydicom/data/test_files/SC_rgb_expb_32bit_2frame.dcm] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NumpyHandler::test_endianness_not_set pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetPixelData::test_no_pixel_data_raises pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetPixelData::test_unknown_pixel_representation_raises pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetPixelData::test_unsupported_syntaxes_raises pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetPixelData::test_bad_length_raises pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetPixelData::test_change_photometric_interpretation pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[-output0] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x00-output1] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x01-output2] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x02-output3] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x04-output4] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x08-output5] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x10-output6] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[ pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[@-output8] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x80-output9] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\xaa-output10] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\xf0-output11] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x0f-output12] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\xff-output13] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x00\x00-output14] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x00\x01-output15] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x00\x80-output16] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x00\xff-output17] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x01\x80-output18] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\x80\x80-output19] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_UnpackBits::test_unpack[\xff\x80-output20] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[-input0] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x00-input1] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x01-input2] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x02-input3] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x04-input4] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x08-input5] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x10-input6] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[ pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[@-input8] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x80-input9] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\xaa-input10] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\xf0-input11] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x0f-input12] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\xff-input13] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x00\x00-input14] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x00\x01-input15] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x00\x80-input16] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x00\xff-input17] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x01\x80-input18] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\x80\x80-input19] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack[\xff\x80-input20] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_non_binary_input pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_non_array_input pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x00@-input0] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x00 pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x00\x10-input2] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x00\x08-input3] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x00\x04-input4] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x00\x02-input5] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x00\x01-input6] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x80-input7] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[@-input8] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[ pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x10-input10] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x08-input11] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x04-input12] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x02-input13] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[\x01-input14] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_pack_partial[-input15] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_PackBits::test_functional pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape0-1-length0] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape1-1-length1] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape2-1-length2] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape3-1-length3] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape4-1-length4] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape5-1-length5] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape6-1-length6] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape7-1-length7] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape8-1-length8] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape9-8-length9] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape10-8-length10] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape11-8-length11] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape12-8-length12] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape13-8-length13] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape14-8-length14] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape15-16-length15] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape16-16-length16] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape17-16-length17] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape18-16-length18] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape19-16-length19] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape20-32-length20] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape21-32-length21] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape22-32-length22] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape23-32-length23] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape24-32-length24] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape25-1-length25] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape26-1-length26] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape27-1-length27] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape28-1-length28] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape29-1-length29] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape30-1-length30] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape31-1-length31] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape32-1-length32] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape33-1-length33] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape34-8-length34] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape35-8-length35] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape36-8-length36] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape37-8-length37] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape38-8-length38] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape39-8-length39] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape40-16-length40] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape41-16-length41] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape42-16-length42] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape43-32-length43] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape44-32-length44] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape45-32-length45] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape46-1-length46] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape47-1-length47] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape48-1-length48] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape49-1-length49] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape50-1-length50] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape51-1-length51] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape52-1-length52] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape53-1-length53] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape54-1-length54] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape55-8-length55] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape56-8-length56] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape57-8-length57] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape58-16-length58] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape59-16-length59] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape60-16-length60] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape61-32-length61] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape62-32-length62] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_bytes[shape63-32-length63] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape0-1-length0] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape1-1-length1] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape2-1-length2] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape3-1-length3] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape4-1-length4] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape5-1-length5] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape6-1-length6] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape7-1-length7] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape8-1-length8] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape9-8-length9] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape10-8-length10] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape11-8-length11] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape12-8-length12] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape13-8-length13] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape14-8-length14] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape15-16-length15] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape16-16-length16] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape17-16-length17] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape18-16-length18] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape19-16-length19] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape20-32-length20] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape21-32-length21] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape22-32-length22] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape23-32-length23] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape24-32-length24] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape25-1-length25] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape26-1-length26] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape27-1-length27] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape28-1-length28] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape29-1-length29] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape30-1-length30] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape31-1-length31] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape32-1-length32] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape33-1-length33] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape34-8-length34] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape35-8-length35] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape36-8-length36] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape37-8-length37] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape38-8-length38] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape39-8-length39] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape40-16-length40] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape41-16-length41] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape42-16-length42] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape43-32-length43] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape44-32-length44] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape45-32-length45] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape46-1-length46] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape47-1-length47] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape48-1-length48] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape49-1-length49] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape50-1-length50] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape51-1-length51] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape52-1-length52] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape53-1-length53] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape54-1-length54] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape55-8-length55] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape56-8-length56] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape57-8-length57] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape58-16-length58] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape59-16-length59] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape60-16-length60] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape61-32-length61] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape62-32-length62] pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetExpectedLength::test_length_in_pixels[shape63-32-length63] pydicom/tests/test_pillow_pixel_data.py::Test_JPEGLS_no_pillow::test_JPEG_LS_PixelArray pydicom/tests/test_pillow_pixel_data.py::Test_JPEGLS_no_pillow::test_emri_JPEG_LS_PixelArray pydicom/tests/test_pillow_pixel_data.py::Test_JPEG2000Tests_no_pillow::testJPEG2000 pydicom/tests/test_pillow_pixel_data.py::Test_JPEG2000Tests_no_pillow::testJPEG2000PixelArray pydicom/tests/test_pillow_pixel_data.py::Test_JPEG2000Tests_no_pillow::test_emri_JPEG2000PixelArray pydicom/tests/test_pillow_pixel_data.py::Test_JPEG2000Tests_no_pillow::test_jpeg2000_lossy pydicom/tests/test_pillow_pixel_data.py::Test_JPEGlossyTests_no_pillow::testJPEGlossy pydicom/tests/test_pillow_pixel_data.py::Test_JPEGlossyTests_no_pillow::testJPEGlossyPixelArray pydicom/tests/test_pillow_pixel_data.py::Test_JPEGlossyTests_no_pillow::testJPEGBaselineColor3DPixelArray pydicom/tests/test_pillow_pixel_data.py::Test_JPEGlosslessTests_no_pillow::testJPEGlossless pydicom/tests/test_pillow_pixel_data.py::Test_JPEGlosslessTests_no_pillow::testJPEGlosslessPixelArray pydicom/tests/test_rle_pixel_data.py::test_unsupported_syntaxes pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_environment pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_supported_dataset pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/rtdose_1frame.dcm-data0] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb.dcm-data1] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/image_dfl.dcm-data2] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_expb_2frame.dcm-data3] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_jpeg_dcmtk.dcm-data4] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/JPEG-lossy.dcm-data5] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_jpeg_gdcm.dcm-data6] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/MR_small_jpeg_ls_lossless.dcm-data7] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/emri_small_jpeg_2k_lossless.dcm-data8] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/JPEG2000.dcm-data9] pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_pixel_array_raises pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_environment pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_unsupported_syntax_raises pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/rtdose_1frame.dcm-data0] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb.dcm-data1] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/image_dfl.dcm-data2] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_expb_2frame.dcm-data3] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_jpeg_dcmtk.dcm-data4] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/JPEG-lossy.dcm-data5] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/SC_rgb_jpeg_gdcm.dcm-data6] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/MR_small_jpeg_ls_lossless.dcm-data7] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/emri_small_jpeg_2k_lossless.dcm-data8] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_can_access_unsupported_dataset[/pydicom/pydicom/data/test_files/JPEG2000.dcm-data9] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_signed pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_1bit_raises pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_8bit_1sample_1f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_8bit_1sample_2f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_8bit_3sample_1f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_8bit_3sample_2f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_16bit_1sample_1f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_16bit_1sample_10f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_16bit_3sample_1f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_16bit_3sample_2f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_32bit_1sample_1f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_32bit_1sample_15f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_32bit_3sample_1f pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEHandler::test_pixel_array_32bit_3sample_2f pydicom/tests/test_rle_pixel_data.py::TestNumpy_GetPixelData::test_no_pixel_data_raises pydicom/tests/test_rle_pixel_data.py::TestNumpy_GetPixelData::test_unknown_pixel_representation_raises pydicom/tests/test_rle_pixel_data.py::TestNumpy_GetPixelData::test_unsupported_syntaxes_raises pydicom/tests/test_rle_pixel_data.py::TestNumpy_GetPixelData::test_change_photometric_interpretation pydicom/tests/test_rle_pixel_data.py::TestNumpy_GetPixelData::test_little_endian_segment_order pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEParseHeader::test_invalid_header_length pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEParseHeader::test_invalid_nr_segments_raises pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEParseHeader::test_parse_header[0-offsets0] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEParseHeader::test_parse_header[1-offsets1] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEParseHeader::test_parse_header[2-offsets2] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEParseHeader::test_parse_header[8-offsets3] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEParseHeader::test_parse_header[14-offsets4] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEParseHeader::test_parse_header[15-offsets5] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_unsupported_bits_allocated_raises pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x00\x00\x00\x00-1-8] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x02\x00\x00\x00-1-8] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x02\x00\x00\x00-3-8] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x04\x00\x00\x00-3-8] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x01\x00\x00\x00-1-16] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x03\x00\x00\x00-1-16] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x05\x00\x00\x00-3-16] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x07\x00\x00\x00-3-16] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x03\x00\x00\x00-1-32] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x05\x00\x00\x00-1-32] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x0b\x00\x00\x00-3-32] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\r\x00\x00\x00-3-32] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\x07\x00\x00\x00-1-64] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_nr_segments_raises[\t\x00\x00\x00-1-64] pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_invalid_frame_data_raises pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_8bit_1sample pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_8bit_3sample pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_16bit_1sample pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_16bit_3sample pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_32bit_1sample pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_32bit_3sample pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeSegment::test_noop pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeSegment::test_literal pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeSegment::test_copy
pydicom/pixel_data_handlers/numpy_handler.py pydicom/pixel_data_handlers/jpeg_ls_handler.py doc/whatsnew/v1.2.0.rst pydicom/pixel_data_handlers/pillow_handler.py pydicom/pixel_data_handlers/gdcm_handler.py pydicom/multival.py
pydicom/pixel_data_handlers/numpy_handler.py pydicom/pixel_data_handlers/jpeg_ls_handler.py doc/whatsnew/v1.2.0.rst pydicom/pixel_data_handlers/pillow_handler.py pydicom/pixel_data_handlers/gdcm_handler.py pydicom/multival.py