lamyj / odil

Odil is a C++11 library for the DICOM standard
Other
85 stars 21 forks source link

VR should be convertible from string in Python wrappers #43

Closed lamyj closed 7 years ago

lamyj commented 8 years ago

In the Python API, the tags are implicitly converted from string to Tag (provided they exist in the dictionary), but this is not the case for the VR. If we want to explicitley specify the VR, we must write

odil.add("PatientName", ["Doe^John"], odil.VR.PN)

The following would be more coherent:

odil.add("PatientName", ["Doe^John"], "PN")