[Python] No presentation context for 'MR Image Storage' has been accepted by the peer with...

Discussão em 'Python' iniciado por Stack, Outubro 23, 2024.

  1. Stack

    Stack Membro Participativo

    I have tried accepting all presentation contexts in the association negoctiantion without any success.

    I am using pynetdicom 2.0.2 using python -m pynetdicom storescu to send and AE.start_server() as an scp to receive a DICOM study.

    When sending and trying to debug in this file: pynetdicom/association.py in this part of the code

    context = self._get_valid_context(
    sop_class, tsyntax, "scu", allow_conversion=allow_conversion
    )


    The values are:

    • sop_class= 1.2.840.10008.5.1.4.1.1.4
    • tsyntax = 1.2.840.10008.1.2.4.90
    • allow_conversion = True

    At the SCP:

    ae = AE(ae_title)
    ae.add_supported_context('1.2.840.10008.5.1.4.1.1.4', [
    '1.2.840.10008.1.2.1', # Explicit VR Little Endian
    '1.2.840.10008.1.2', # Implicit VR Little Endian
    '1.2.840.10008.1.2.4.90' # JPEG 2000 Image Compression (Lossless)
    ])

    handlers = [(evt.EVT_C_STORE, handle_store)]

    scp = ae.start_server(
    ('', port),
    block=False,
    evt_handlers=handlers
    )


    But I keep getting the following error from the scu: No presentation context for 'MR Image Storage' has been accepted by the peer with 'JPEG 2000 Image Compression (Lossless Only)'

    Continue reading...

Compartilhe esta Página