ez_wsi_dicomweb/dicom_slide.py [1829:1845]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    super().__init__(
        dwi,
        path,
        enable_client_slide_frame_decompression,
        accession_number,
        logging_factory,
        slide_frame_cache,
    )
    if json_metadata:
      # if metadata is defined convert string to json.
      if isinstance(json_metadata, str):
        try:
          json_metadata = json.loads(json_metadata)
        except json.JSONDecodeError as exp:
          raise ez_wsi_errors.InvalidSlideJsonMetadataError(
              'Error decoding JSON metadata.'
          ) from exp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ez_wsi_dicomweb/dicom_slide.py [2328:2344]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    super().__init__(
        dwi,
        path,
        enable_client_slide_frame_decompression,
        accession_number,
        logging_factory,
        slide_frame_cache,
    )
    if json_metadata:  # Ignore empty JSON metadata.
      # if metadata is defined convert string to json.
      if isinstance(json_metadata, str):
        try:
          json_metadata = json.loads(json_metadata)
        except json.JSONDecodeError as exp:
          raise ez_wsi_errors.InvalidSlideJsonMetadataError(
              'Error decoding JSON metadata.'
          ) from exp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



