{"action":"closed","issue":{"url":"https://api.github.com/repos/pydicom/pydicom/issues/624","repository_url":"https://api.github.com/repos/pydicom/pydicom","labels_url":"https://api.github.com/repos/pydicom/pydicom/issues/624/labels{/name}","comments_url":"https://api.github.com/repos/pydicom/pydicom/issues/624/comments","events_url":"https://api.github.com/repos/pydicom/pydicom/issues/624/events","html_url":"https://github.com/pydicom/pydicom/issues/624","id":315986376,"node_id":"MDU6SXNzdWUzMTU5ODYzNzY=","number":624,"title":"\"bytes\" representation for AE fields not supported","user":{"login":"amosonn","id":3142573,"node_id":"MDQ6VXNlcjMxNDI1NzM=","avatar_url":"https://avatars2.githubusercontent.com/u/3142573?v=4","gravatar_id":"","url":"https://api.github.com/users/amosonn","html_url":"https://github.com/amosonn","followers_url":"https://api.github.com/users/amosonn/followers","following_url":"https://api.github.com/users/amosonn/following{/other_user}","gists_url":"https://api.github.com/users/amosonn/gists{/gist_id}","starred_url":"https://api.github.com/users/amosonn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amosonn/subscriptions","organizations_url":"https://api.github.com/users/amosonn/orgs","repos_url":"https://api.github.com/users/amosonn/repos","events_url":"https://api.github.com/users/amosonn/events{/privacy}","received_events_url":"https://api.github.com/users/amosonn/received_events","type":"User","site_admin":false},"labels":[{"id":63501233,"node_id":"MDU6TGFiZWw2MzUwMTIzMw==","url":"https://api.github.com/repos/pydicom/pydicom/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-19T18:17:16Z","updated_at":"2018-07-20T00:12:59Z","closed_at":"2018-07-20T00:12:59Z","author_association":"NONE","body":"#### Description\r\nFields with VR of AE in datasets, should support getting a `bytes` object. Perhaps, this should be even the default representation thereof, as they truly support only ASCII and not real strings.\r\nInstead, when attempting to serialize a dataset with a `bytes` value, an error is raised.\r\n\r\n#### Steps/Code to Reproduce\r\n```\r\nds = Dataset()\r\nds.StationAETitle = b\"abc\"\r\nds.is_implicit_VR = True\r\nds.is_little_endian = True\r\nwrite_file(\"/tmp/a.dcm\", ds)\r\n```\r\n\r\n#### Versions\r\npython 3.6.4\r\npydicom 1.0.1"}}
{"actor":{"display_login":"scaramallion"}}