Module Expr Str ImportFrom alias Import alias Import alias identifier ImportFrom alias identifier ImportFrom alias alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str ImportFrom alias With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body Return Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Return Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str If CompareIn NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad Return AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num Num attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad ExtSlice Slice Slice Num Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index Num NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Num body Raise Call NameLoad Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Return Call NameLoad BinOpAdd NameLoad ListLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str Str Str body Assign SubscriptStore NameLoad Index NameLoad TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str TupleLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If Call NameLoad GeneratorExp CompareIs NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad ExtSlice Slice Num Slice Num BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad For TupleStore NameStore NameStore TupleLoad TupleLoad BinOpSub NameLoad NameLoad NameLoad TupleLoad BinOpSub NameLoad NameLoad NameLoad body For NameStore NameLoad body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Num Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareNotEq NameLoad Num body If CompareEq NameLoad Num body Return BinOpMult NameLoad NameLoad Return BinOpAdd BinOpMult NameLoad NameLoad NameLoad If CompareNotEq NameLoad Num body Return BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Return SubscriptLoad Call NameLoad NameLoad Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Return SubscriptLoad Call NameLoad NameLoad Index Num decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str TryExcept body Expr SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str If CompareIn NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr comprehension NameStore AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign NameStore BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign AttributeStore NameLoad attr NameLoad If CompareLt NameLoad Num body Return TupleLoad NameLoad NameLoad NameLoad Assign NameStore ListComp Call NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd TupleLoad NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num If CompareNotEq NameLoad BinOpMult NameLoad SubscriptLoad NameLoad Index Num body Raise Call NameLoad Str Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad Return AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num Num attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Return Call NameLoad Call NameLoad NameLoad BinOpAdd Call NameLoad NameLoad ListLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str body Assign SubscriptStore NameLoad Index NameLoad TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str TupleLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad ExtSlice Ellipsis Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Str NameLoad If CompareIs NameLoad NameLoad body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return NameLoad orelse If CompareIs NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareIs NameLoad NameLoad body Return NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assert Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num keyword Num If CompareLt NameLoad Num body Return UnaryOpUSub NameLoad orelse Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Num Assign SubscriptStore NameLoad Index Str TupleLoad NameLoad Lambda arguments args NameParam NameParam defaults CompareEq NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad If CompareNotEq NameLoad Num body Raise Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Return Call NameLoad NameLoad keyword Num decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass If BoolOpOr CompareIs NameLoad NameLoad CompareEq NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn NameLoad TupleLoad NameLoad NameLoad body Return NameLoad Assign NameStore AttributeLoad NameLoad attr Return TupleLoad Call NameLoad BinOpDiv NameLoad NameLoad Call NameLoad BinOpDiv NameLoad NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad Call NameLoad NameLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If Call NameLoad GeneratorExp CompareIs NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore BinOpDiv NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad Return BinOpAdd NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpPow NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Ellipsis Slice NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A  Classes to wrap DICOM objects and files

The wrappers encapsulate the capabilities of the different DICOM
formats.

They also allow dictionary-like access to named fields.

For calculated attributes, we return None where needed data is missing.
It seemed strange to raise an error during attribute processing, other
than an AttributeError - breaking the 'properties manifesto'.   So, any
processing that needs to raise an error, should be in a method, rather
than in a property, or property-like thing.
 __future__ division N/A operator N/A numpy np N/A csareader csar dwiparams B2q nearest_pos_semi_def q2bg openers ImageOpener onetime setattr_on_read one_time pydicom_compat pydicom WrapperError N/A Exception N/A N/A N/A WrapperPrecisionError N/A WrapperError N/A N/A N/A wrapper_from_file N/A N/A file_like N/A args kwargs N/A N/A  Create DICOM wrapper from `file_like` object

    Parameters
    ----------
    file_like : object
       filename string or file-like object, pointing to a valid DICOM
       file readable by ``pydicom``
    \*args : positional
        args to ``dicom.read_file`` command.
    \*\*kwargs : keyword
        args to ``dicom.read_file`` command.  ``force=True`` might be a
        likely keyword argument.

    Returns
    -------
    dcm_w : ``dicomwrappers.Wrapper`` or subclass
       DICOM wrapper corresponding to DICOM data type
     pydicom_compat read_file N/A N/A ImageOpener file_like fobj N/A N/A dcm_data N/A read_file fobj args kwargs N/A N/A wrapper_from_data dcm_data N/A wrapper_from_data N/A N/A dcm_data N/A N/A N/A  Create DICOM wrapper from DICOM data object

    Parameters
    ----------
    dcm_data : ``dicom.dataset.Dataset`` instance or similar
       Object allowing attribute access, with DICOM attributes.
       Probably a dataset as read by ``pydicom``.

    Returns
    -------
    dcm_w : ``dicomwrappers.Wrapper`` or subclass
       DICOM wrapper corresponding to DICOM data type
     N/A sop_class N/A N/A dcm_data get SOPClassUID N/A N/A sop_class 1.2.840.10008.5.1.4.1.1.4.1 N/A N/A N/A MultiframeWrapper dcm_data N/A csa N/A N/A csar get_csa_header dcm_data N/A N/A csa None N/A N/A N/A Wrapper dcm_data N/A N/A N/A csar is_mosaic csa N/A N/A N/A MosaicWrapper dcm_data csa N/A N/A SiemensWrapper dcm_data csa N/A Wrapper N/A object N/A N/A  Class to wrap general DICOM files

    Methods:

    * get_affine()
    * get_data()
    * get_pixel_array()
    * is_same_series(other)
    * __getitem__ : return attributes from `dcm_data`
    * get(key[, default]) - as usual given __getitem__ above

    Attributes and things that look like attributes:

    * dcm_data : object
    * image_shape : tuple
    * image_orient_patient : (3,2) array
    * slice_normal : (3,) array
    * rotation_matrix : (3,3) array
    * voxel_sizes : tuple length 3
    * image_position : sequence length 3
    * slice_indicator : float
    * series_signature : tuple
     N/A is_csa False N/A is_mosaic False N/A is_multiframe False N/A b_matrix None N/A q_vector None N/A b_value None N/A b_vector None __init__ N/A N/A self dcm_data N/A N/A N/A  Initialize wrapper

        Parameters
        ----------
        dcm_data : object
           object should allow 'get' and '__getitem__' access.  Usually this
           will be a ``dicom.dataset.Dataset`` object resulting from reading a
           DICOM file, but a dictionary should also work.
         N/A N/A self dcm_data dcm_data N/A image_shape N/A N/A self N/A N/A N/A  The array shape as it will be returned by ``get_data()``
         N/A shape N/A N/A N/A self get Rows N/A N/A self get Columns N/A N/A None shape N/A N/A None N/A shape N/A one_time image_orient_patient N/A N/A self N/A N/A N/A  Note that this is _not_ LR flipped  N/A iop N/A N/A self get ImageOrientationPatient N/A N/A iop None N/A N/A None N/A iop N/A N/A np array N/A list N/A map float iop N/A N/A N/A N/A N/A N/A np array iop reshape 2 3 T N/A one_time slice_normal N/A N/A self N/A N/A N/A iop N/A self image_orient_patient N/A N/A iop None N/A N/A None N/A N/A N/A np cross N/A iop N/A N/A N/A 1 N/A iop N/A N/A N/A 0 N/A one_time rotation_matrix N/A N/A self N/A N/A N/A  Return rotation matrix between array indices and mm

        Note that we swap the two columns of the 'ImageOrientPatient'
        when we create the rotation matrix.  This is takes into account
        the slightly odd ij transpose construction of the DICOM
        orientation fields - see doc/theory/dicom_orientaiton.rst.
         N/A iop N/A self image_orient_patient N/A s_norm N/A self slice_normal N/A N/A N/A iop None N/A s_norm None N/A N/A None N/A R N/A N/A np eye 3 N/A N/A R N/A N/A N/A 2 N/A N/A np fliplr iop N/A N/A R N/A N/A N/A 2 s_norm N/A N/A N/A N/A np allclose N/A N/A np eye 3 N/A N/A np dot R N/A R T atol 5e-05 N/A N/A N/A WrapperPrecisionError Rotation matrix not nearly orthogonal N/A R N/A one_time voxel_sizes N/A N/A self N/A N/A N/A  voxel sizes for array as returned by ``get_data()``
         N/A pix_space N/A N/A self get PixelSpacing N/A N/A pix_space None N/A N/A None N/A zs N/A N/A self get SpacingBetweenSlices N/A N/A zs None N/A N/A zs N/A N/A self get SliceThickness N/A N/A zs None N/A N/A zs 1 N/A zs N/A float zs N/A pix_space N/A list N/A map float pix_space N/A N/A tuple N/A pix_space N/A zs N/A one_time image_position N/A N/A self N/A N/A N/A  Return position of first voxel in data block

        Parameters
        ----------
        None

        Returns
        -------
        img_pos : (3,) array
           position in mm of voxel (0,0) in image array
         N/A ipp N/A N/A self get ImagePositionPatient N/A N/A ipp None N/A N/A None N/A N/A N/A np array N/A list N/A map float ipp N/A one_time slice_indicator N/A N/A self N/A N/A N/A  A number that is higher for higher slices in Z

        Comparing this number between two adjacent slices should give a
        difference equal to the voxel size in Z.

        See doc/theory/dicom_orientation for description
         N/A ipp N/A self image_position N/A s_norm N/A self slice_normal N/A N/A N/A ipp None N/A s_norm None N/A N/A None N/A N/A N/A np inner ipp s_norm N/A one_time instance_number N/A N/A self N/A N/A N/A  Just because we use this a lot for sorting  N/A N/A N/A self get InstanceNumber N/A one_time series_signature N/A N/A self N/A N/A N/A  Signature for matching slices into series

        We use `signature` in ``self.is_same_series(other)``.

        Returns
        -------
        signature : dict
           with values of 2-element sequences, where first element is
           value, and second element is function to compare this value
           with another.  This allows us to pass things like arrays,
           that might need to be ``allclose`` instead of equal
         N/A signature N/A N/A eq N/A operator eq N/A key N/A SeriesInstanceUID SeriesNumber ImageType SequenceName EchoNumbers N/A N/A N/A signature N/A key N/A N/A N/A self get key eq N/A N/A signature N/A image_shape N/A N/A self image_shape eq N/A N/A signature N/A iop N/A N/A self image_orient_patient none_or_close N/A N/A signature N/A vox N/A N/A self voxel_sizes none_or_close N/A signature N/A one_time __getitem__ N/A N/A self key N/A N/A N/A  Return values from DICOM object N/A N/A key N/A self dcm_data N/A N/A N/A KeyError N/A "%s" not in self.dcm_data key N/A N/A N/A N/A self dcm_data get key N/A get N/A N/A self key default N/A None N/A N/A  Get values from underlying dicom data  N/A N/A N/A N/A self dcm_data get key default N/A get_affine N/A N/A self N/A N/A N/A  Return mapping between voxel and DICOM coordinate system

        Parameters
        ----------
        None

        Returns
        -------
        aff : (4,4) affine
           Affine giving transformation between voxels in data array and
           mm in the DICOM patient coordinate system.
         N/A orient N/A self rotation_matrix N/A vox N/A self voxel_sizes N/A ipp N/A self image_position N/A N/A any N/A N/A p None N/A p N/A orient vox ipp N/A N/A N/A WrapperError Not enough information for affine N/A aff N/A N/A np eye 4 N/A N/A aff N/A N/A 3 N/A 3 N/A orient N/A N/A np array vox N/A N/A aff N/A N/A 3 N/A 3 ipp N/A aff N/A get_pixel_array N/A N/A self N/A N/A N/A  Return unscaled pixel array from DICOM  N/A data N/A N/A N/A self dcm_data get pixel_array N/A N/A data None N/A N/A N/A WrapperError Cannot find data in DICOM N/A data N/A get_data N/A N/A self N/A N/A N/A  Get scaled image data from DICOMs

        We return the data as DICOM understands it, first dimension is
        rows, second dimension is columns

        Returns
        -------
        data : array
           array with data as scaled from any scaling in the DICOM
           fields.
         N/A N/A N/A self _scale_data N/A N/A self get_pixel_array N/A is_same_series N/A N/A self other N/A N/A N/A  Return True if `other` appears to be in same series

        Parameters
        ----------
        other : object
           object with ``series_signature`` attribute that is a
           mapping.  Usually it's a ``Wrapper`` or sub-class instance.

        Returns
        -------
        tf : bool
           True if `other` might be in the same series as `self`, False
           otherwise.
         N/A my_sig N/A self series_signature N/A your_sig N/A other series_signature N/A my_keys N/A set my_sig N/A your_keys N/A set your_sig N/A key N/A N/A my_keys intersection your_keys N/A N/A N/A v1 func N/A my_sig N/A key N/A N/A v2 _ N/A your_sig N/A key N/A N/A N/A func v1 v2 N/A N/A False N/A N/A keys sig N/A N/A N/A my_keys your_keys my_sig N/A N/A your_keys my_keys your_sig N/A N/A key keys N/A N/A N/A v1 func N/A sig N/A key N/A N/A N/A func v1 None N/A N/A False N/A True N/A _scale_data N/A N/A self data N/A N/A N/A scale N/A float N/A N/A self get RescaleSlope 1 N/A offset N/A float N/A N/A self get RescaleIntercept 0 N/A N/A N/A self _apply_scale_offset data scale offset N/A _apply_scale_offset N/A N/A self data scale offset N/A N/A N/A N/A scale 1 N/A N/A N/A offset 0 N/A N/A N/A data scale N/A N/A N/A data scale offset N/A N/A offset 0 N/A N/A N/A data offset N/A data N/A b_value N/A N/A self N/A N/A N/A  Return b value for diffusion or None if not available
         N/A q_vec N/A self q_vector N/A N/A q_vec None N/A N/A None N/A N/A N/A q2bg q_vec N/A 0 N/A one_time b_vector N/A N/A self N/A N/A N/A  Return b vector for diffusion or None if not available
         N/A q_vec N/A self q_vector N/A N/A q_vec None N/A N/A None N/A N/A N/A q2bg q_vec N/A 1 N/A one_time N/A MultiframeWrapper N/A Wrapper N/A N/A Wrapper for Enhanced MR Storage SOP Class

    Tested with Philips' Enhanced DICOM implementation.

    The specification for the Enhanced MR image IOP / SOP began life as `DICOM
    supplement 49 <ftp://medical.nema.org/medical/dicom/final/sup49_ft.pdf>`_,
    but as of 2016 it is part of the standard. In particular see:

    * `A.36 Enhanced MR Information Object Definitions
      <http://dicom.nema.org/medical/dicom/current/output/pdf/part03.pdf#sect_A.36>`_;
    * `C.7.6.16 Multi-Frame Functional Groups Module
      <http://dicom.nema.org/medical/dicom/current/output/pdf/part03.pdf#sect_C.7.6.16>`_;
    * `C.7.6.17 Multi-Frame Dimension Module
      <http://dicom.nema.org/medical/dicom/current/output/pdf/part03.pdf#sect_C.7.6.17>`_.

    Attributes
    ----------
    is_multiframe : boolean
        Identifies `dcmdata` as multi-frame
    frames : sequence
        A sequence of ``dicom.dataset.Dataset`` objects populated by the
        ``dicom.dataset.Dataset.PerFrameFunctionalGroupsSequence`` attribute
    shared : object
        The first (and only) ``dicom.dataset.Dataset`` object from a
        ``dicom.dataset.Dataset.SharedFunctionalgroupSequence``.

    Methods
    -------
    image_shape(self)
    image_orient_patient(self)
    voxel_sizes(self)
    image_position(self)
    series_signature(self)
    get_data(self)
     N/A is_multiframe True __init__ N/A N/A self dcm_data N/A N/A N/A Initializes MultiframeWrapper

        Parameters
        ----------
        dcm_data : object
           object should allow 'get' and '__getitem__' access.  Usually this
           will be a ``dicom.dataset.Dataset`` object resulting from reading a
           DICOM file, but a dictionary should also work.
         N/A N/A N/A Wrapper __init__ self dcm_data N/A N/A self dcm_data dcm_data N/A N/A self frames N/A N/A dcm_data get PerFrameFunctionalGroupsSequence N/A N/A N/A N/A N/A self frames N/A 0 N/A N/A N/A TypeError N/A N/A N/A WrapperError PerFrameFunctionalGroupsSequence is empty. N/A N/A N/A N/A self shared N/A N/A N/A dcm_data get SharedFunctionalGroupsSequence N/A 0 N/A N/A N/A TypeError N/A N/A N/A WrapperError SharedFunctionalGroupsSequence is empty. N/A N/A self _shape None N/A image_shape N/A N/A self N/A N/A N/A The array shape as it will be returned by ``get_data()``

        The shape is determined by the *Rows* DICOM attribute, *Columns*
        DICOM attribute, and the set of frame indices given by the
        *FrameContentSequence[0].DimensionIndexValues* DICOM attribute of each
        element in the *PerFrameFunctionalGroupsSequence*.  The first two
        axes of the returned shape correspond to the rows, and columns
        respectively. The remaining axes correspond to those of the frame
        indices with order preserved.

        What each axis in the frame indices refers to is given by the
        corresponding entry in the *DimensionIndexSequence* DICOM attribute.
        **WARNING**: Any axis refering to the *StackID* DICOM attribute will
        have been removed from the frame indices in determining the shape. This
        is because only a file containing a single stack is currently allowed by
        this wrapper.

        References
        ----------
        * C.7.6.16 Multi-Frame Functional Groups Module:
          http://dicom.nema.org/medical/dicom/current/output/pdf/part03.pdf#sect_C.7.6.16
        * C.7.6.17 Multi-Frame Dimension Module:
          http://dicom.nema.org/medical/dicom/current/output/pdf/part03.pdf#sect_C.7.6.17
        * Diagram of DimensionIndexSequence and DimensionIndexValues:
          http://dicom.nema.org/medical/dicom/current/output/pdf/part03.pdf#figure_C.7.6.17-1
         N/A N/A rows cols N/A N/A N/A self get Rows N/A N/A self get Columns N/A N/A None N/A rows cols N/A N/A N/A WrapperError Rows and/or Columns are empty. N/A n_frames N/A N/A self get NumberOfFrames N/A N/A N/A len N/A self frames n_frames N/A frame_indices N/A N/A np array N/A N/A N/A N/A frame FrameContentSequence N/A 0 DimensionIndexValues N/A frame N/A self frames N/A stack_ids N/A set N/A N/A N/A N/A frame FrameContentSequence N/A 0 StackID N/A frame N/A self frames N/A N/A N/A len stack_ids 1 N/A N/A N/A WrapperError File contains more than one StackID. Cannot handle multi-stack files N/A dim_seq N/A N/A dim DimensionIndexPointer N/A dim N/A N/A self get DimensionIndexSequence N/A stackid_tag N/A N/A N/A pydicom datadict tag_for_name StackID N/A N/A stackid_tag dim_seq N/A N/A stackid_dim_idx N/A N/A dim_seq index stackid_tag N/A frame_indices N/A N/A np delete frame_indices stackid_dim_idx axis 1 N/A n_dim N/A N/A N/A frame_indices shape N/A 1 2 N/A N/A self _frame_indices frame_indices N/A N/A n_dim 4 N/A N/A N/A rows cols n_frames N/A ns_unique N/A N/A len N/A N/A np unique row N/A row N/A N/A self _frame_indices T N/A shape N/A N/A rows cols N/A tuple ns_unique N/A n_vols N/A N/A np prod N/A shape N/A 3 N/A N/A n_frames N/A n_vols N/A shape N/A 2 N/A N/A N/A WrapperError Calculated shape does not match number of frames. N/A N/A tuple shape N/A one_time image_orient_patient N/A N/A self N/A N/A N/A 
        Note that this is _not_ LR flipped
         N/A N/A N/A iop N/A N/A N/A N/A self shared PlaneOrientationSequence N/A 0 ImageOrientationPatient N/A N/A N/A AttributeError N/A N/A N/A N/A iop N/A N/A N/A N/A N/A self frames N/A 0 PlaneOrientationSequence N/A 0 ImageOrientationPatient N/A N/A N/A AttributeError N/A N/A N/A WrapperError Not enough information for image_orient_patient N/A N/A iop None N/A N/A None N/A iop N/A N/A np array N/A list N/A map float iop N/A N/A N/A N/A N/A N/A np array iop reshape 2 3 T N/A one_time voxel_sizes N/A N/A self N/A N/A N/A  Get i, j, k voxel sizes  N/A N/A N/A pix_measures N/A N/A N/A self shared PixelMeasuresSequence N/A 0 N/A N/A N/A AttributeError N/A N/A N/A N/A pix_measures N/A N/A N/A N/A self frames N/A 0 PixelMeasuresSequence N/A 0 N/A N/A N/A AttributeError N/A N/A N/A WrapperError Not enough data for pixel spacing N/A pix_space N/A pix_measures PixelSpacing N/A N/A N/A zs N/A pix_measures SliceThickness N/A N/A N/A AttributeError N/A N/A zs N/A N/A self get SpacingBetweenSlices N/A N/A zs None N/A N/A N/A WrapperError Not enough data for slice thickness N/A N/A tuple N/A map float N/A N/A list pix_space N/A zs N/A one_time image_position N/A N/A self N/A N/A N/A N/A N/A ipp N/A N/A N/A N/A self shared PlanePositionSequence N/A 0 ImagePositionPatient N/A N/A N/A AttributeError N/A N/A N/A N/A ipp N/A N/A N/A N/A N/A self frames N/A 0 PlanePositionSequence N/A 0 ImagePositionPatient N/A N/A N/A AttributeError N/A N/A N/A WrapperError Cannot get image position from dicom N/A N/A ipp None N/A N/A None N/A N/A N/A np array N/A list N/A map float ipp N/A one_time series_signature N/A N/A self N/A N/A N/A signature N/A N/A eq N/A operator eq N/A key N/A SeriesInstanceUID SeriesNumber ImageType N/A N/A N/A signature N/A key N/A N/A N/A self get key eq N/A N/A signature N/A image_shape N/A N/A self image_shape eq N/A N/A signature N/A iop N/A N/A self image_orient_patient none_or_close N/A N/A signature N/A vox N/A N/A self voxel_sizes none_or_close N/A signature N/A one_time get_data N/A N/A self N/A N/A N/A shape N/A self image_shape N/A N/A shape None N/A N/A N/A WrapperError No valid information for image shape N/A data N/A N/A self get_pixel_array N/A data N/A N/A data transpose N/A 1 2 0 N/A sorted_indices N/A N/A np lexsort N/A N/A self _frame_indices T N/A data N/A data N/A N/A N/A sorted_indices N/A data N/A N/A data reshape shape order F N/A N/A N/A self _scale_data data N/A _scale_data N/A N/A self data N/A N/A N/A pix_trans N/A getattr N/A N/A self frames N/A 0 PixelValueTransformationSequence None N/A N/A pix_trans None N/A N/A N/A N/A N/A super MultiframeWrapper self _scale_data data N/A scale N/A float N/A N/A pix_trans N/A 0 RescaleSlope N/A offset N/A float N/A N/A pix_trans N/A 0 RescaleIntercept N/A N/A N/A self _apply_scale_offset data scale offset N/A N/A SiemensWrapper N/A Wrapper N/A N/A  Wrapper for Siemens format DICOMs

    Adds attributes:

    * csa_header : mapping
    * b_matrix : (3,3) array
    * q_vector : (3,) array
     N/A is_csa True __init__ N/A N/A self dcm_data csa_header N/A None N/A N/A  Initialize Siemens wrapper

        The Siemens-specific information is in the `csa_header`, either
        passed in here, or read from the input `dcm_data`.

        Parameters
        ----------
        dcm_data : object
           object should allow 'get' and '__getitem__' access.  If `csa_header`
           is None, it should also be possible to extract a CSA header from
           `dcm_data`. Usually this will be a ``dicom.dataset.Dataset`` object
           resulting from reading a DICOM file.  A dict should also work.
        csa_header : None or mapping, optional
           mapping giving values for Siemens CSA image sub-header.  If
           None, we try and read the CSA information from `dcm_data`.
           If this fails, we fall back to an empty dict.
         N/A N/A N/A N/A super SiemensWrapper self __init__ dcm_data N/A N/A dcm_data None N/A N/A dcm_data N/A N/A N/A self dcm_data dcm_data N/A N/A csa_header None N/A N/A csa_header N/A N/A csar get_csa_header dcm_data N/A N/A csa_header None N/A N/A csa_header N/A N/A N/A self csa_header csa_header N/A slice_normal N/A N/A self N/A N/A N/A std_slice_normal N/A N/A super SiemensWrapper self slice_normal N/A csa_slice_normal N/A N/A csar get_slice_normal N/A self csa_header N/A N/A N/A std_slice_normal None N/A csa_slice_normal None N/A N/A None N/A N/A N/A std_slice_normal None N/A N/A N/A N/A np array csa_slice_normal N/A N/A N/A csa_slice_normal None N/A N/A std_slice_normal N/A N/A dot_prod N/A N/A np dot csa_slice_normal std_slice_normal N/A N/A N/A np allclose N/A N/A np fabs dot_prod 1.0 atol 1e-05 N/A N/A dot_prod 0 N/A N/A N/A std_slice_normal N/A N/A std_slice_normal N/A one_time series_signature N/A N/A self N/A N/A N/A  Add ICE dims from CSA header to signature  N/A signature N/A N/A super SiemensWrapper self series_signature N/A ice N/A N/A csar get_ice_dims N/A self csa_header N/A N/A ice None N/A N/A ice N/A N/A ice N/A 6 N/A ice N/A 8 9 N/A N/A signature N/A ICE_Dims N/A ice N/A N/A N/A x y N/A N/A x y N/A signature N/A one_time b_matrix N/A N/A self N/A N/A N/A  Get DWI B matrix referring to voxel space

        Parameters
        ----------
        None

        Returns
        -------
        B : (3,3) array or None
           B matrix in *voxel* orientation space.  Returns None if this is
           not a Siemens header with the required information.  We return
           None if this is a b0 acquisition
         N/A hdr N/A self csa_header N/A B N/A N/A csar get_b_matrix hdr N/A N/A B None N/A N/A bval_requested N/A N/A csar get_b_value hdr N/A N/A bval_requested None N/A N/A None N/A N/A bval_requested 0 N/A N/A N/A N/A csar CSAError No B matrix and b value != 0 N/A N/A N/A np zeros N/A 3 3 N/A R N/A N/A self rotation_matrix T N/A B_vox N/A N/A np dot R N/A N/A np dot B N/A R T N/A N/A nearest_pos_semi_def B_vox N/A one_time q_vector N/A N/A self N/A N/A N/A  Get DWI q vector referring to voxel space

        Parameters
        ----------
        None

        Returns
        -------
        q: (3,) array
           Estimated DWI q vector in *voxel* orientation space.  Returns
           None if this is not (detectably) a DWI
         N/A B N/A self b_matrix N/A N/A B None N/A N/A None N/A N/A B2q B tol 1e-08 N/A one_time N/A MosaicWrapper N/A SiemensWrapper N/A N/A  Class for Siemens mosaic format data

    Mosaic format is a way of storing a 3D image in a 2D slice - and
    it's as simple as you'd imagine it would be - just storing the slices
    in a mosaic similar to a light-box print.

    We need to allow for this when getting the data and (because of an
    idiosyncrasy in the way Siemens stores the images) calculating the
    position of the first voxel.

    Adds attributes:

    * n_mosaic : int
    * mosaic_size : int
     N/A is_mosaic True __init__ N/A N/A self dcm_data csa_header n_mosaic N/A None None N/A N/A  Initialize Siemens Mosaic wrapper

        The Siemens-specific information is in the `csa_header`, either
        passed in here, or read from the input `dcm_data`.

        Parameters
        ----------
        dcm_data : object
           object should allow 'get' and '__getitem__' access.  If `csa_header`
           is None, it should also be possible for to extract a CSA header from
           `dcm_data`. Usually this will be a ``dicom.dataset.Dataset`` object
           resulting from reading a DICOM file.  A dict should also work.
        csa_header : None or mapping, optional
           mapping giving values for Siemens CSA image sub-header.
        n_mosaic : None or int, optional
           number of images in mosaic.  If None, try to get this number
           from `csa_header`.  If this fails, raise an error
         N/A N/A N/A SiemensWrapper __init__ self dcm_data csa_header N/A N/A n_mosaic None N/A N/A N/A N/A n_mosaic N/A N/A csar get_n_mosaic N/A self csa_header N/A N/A N/A KeyError N/A N/A N/A N/A N/A n_mosaic None N/A n_mosaic 0 N/A N/A N/A WrapperError No valid mosaic number in CSA header; is this really Siemens mosiac data? N/A N/A self n_mosaic n_mosaic N/A N/A self mosaic_size N/A int N/A N/A np ceil N/A N/A np sqrt n_mosaic N/A image_shape N/A N/A self N/A N/A N/A  Return image shape as returned by ``get_data()``  N/A rows N/A N/A self get Rows N/A cols N/A N/A self get Columns N/A N/A None N/A rows cols N/A N/A None N/A mosaic_size N/A self mosaic_size N/A N/A N/A int N/A rows mosaic_size N/A int N/A cols mosaic_size N/A self n_mosaic N/A one_time image_position N/A N/A self N/A N/A N/A  Return position of first voxel in data block

        Adjusts Siemens mosaic position vector for bug in mosaic format
        position.  See ``dicom_mosaic`` in doc/theory for details.

        Parameters
        ----------
        None

        Returns
        -------
        img_pos : (3,) array
           position in mm of voxel (0,0,0) in Mosaic array
         N/A ipp N/A N/A super MosaicWrapper self image_position N/A N/A md_rows md_cols N/A N/A N/A self get Rows N/A N/A self get Columns N/A iop N/A self image_orient_patient N/A pix_spacing N/A N/A self get PixelSpacing N/A N/A any N/A N/A x None N/A x N/A ipp md_rows md_cols iop pix_spacing N/A N/A None N/A pix_spacing N/A N/A np array N/A list N/A map float pix_spacing N/A md_rc N/A N/A np array N/A md_rows md_cols N/A rd_rc N/A md_rc N/A self mosaic_size N/A vox_trans_fixes N/A N/A md_rc rd_rc 2 N/A Q N/A N/A N/A np fliplr iop pix_spacing N/A N/A ipp N/A N/A N/A N/A np dot Q N/A vox_trans_fixes N/A N/A N/A None ravel N/A one_time get_data N/A N/A self N/A N/A N/A  Get scaled image data from DICOMs

        Resorts data block from mosaic to 3D

        Returns
        -------
        data : array
           array with data as scaled from any scaling in the DICOM
           fields.

        Notes
        -----
        The apparent image in the DICOM file is a 2D array that consists of
        blocks, that are the output 2D slices.  Let's call the original array
        the *slab*, and the contained slices *slices*.   The slices are of
        pixel dimension ``n_slice_rows`` x ``n_slice_cols``.  The slab is of
        pixel dimension ``n_slab_rows`` x ``n_slab_cols``.  Because the
        arrangement of blocks in the slab is defined as being square, the
        number of blocks per slab row and slab column is the same.  Let
        ``n_blocks`` be the number of blocks contained in the slab.  There is
        also ``n_slices`` - the number of slices actually collected, some
        number <= ``n_blocks``.  We have the value ``n_slices`` from the
        'NumberOfImagesInMosaic' field of the Siemens private (CSA) header.
        ``n_row_blocks`` and ``n_col_blocks`` are therefore given by
        ``ceil(sqrt(n_slices))``, and ``n_blocks`` is ``n_row_blocks ** 2``.
        Also ``n_slice_rows == n_slab_rows / n_row_blocks``, etc.  Using these
        numbers we can therefore reconstruct the slices from the 2D DICOM pixel
        array.
         N/A shape N/A self image_shape N/A N/A shape None N/A N/A N/A WrapperError No valid information for image shape N/A N/A n_slice_rows n_slice_cols n_mosaic shape N/A n_slab_rows N/A self mosaic_size N/A n_blocks N/A n_slab_rows 2 N/A data N/A N/A self get_pixel_array N/A v4 N/A N/A data reshape n_slab_rows n_slice_rows n_slab_rows n_slice_cols N/A v4 N/A N/A v4 transpose N/A 1 3 0 2 N/A v3 N/A N/A v4 reshape N/A n_slice_rows n_slice_cols n_blocks N/A v3 N/A v3 N/A N/A N/A n_mosaic N/A N/A N/A self _scale_data v3 N/A N/A none_or_close N/A N/A val1 val2 rtol atol N/A 1e-05 1e-06 N/A N/A  Match if `val1` and `val2` are both None, or are close

    Parameters
    ----------
    val1 : None or array-like
    val2 : None or array-like
    rtol : float, optional
       Relative tolerance; see ``np.allclose``
    atol : float, optional
       Absolute tolerance; see ``np.allclose``

    Returns
    -------
    tf : bool
       True iff (both `val1` and `val2` are None) or (`val1` and `val2`
       are close arrays, as detected by ``np.allclose`` with parameters
       `rtol` and `atal`).

    Examples
    --------
    >>> none_or_close(None, None)
    True
    >>> none_or_close(1, None)
    False
    >>> none_or_close(None, 1)
    False
    >>> none_or_close([1,2], [1,2])
    True
    >>> none_or_close([0,1], [0,2])
    False
     N/A N/A N/A val1 None N/A val2 None N/A N/A True N/A N/A N/A val1 None N/A val2 None N/A N/A False N/A N/A N/A np allclose val1 val2 rtol atol N/A