ImagingDataCommons / dicomweb-client

Python client for DICOMweb RESTful services
https://dicomweb-client.readthedocs.io
MIT License
110 stars 38 forks source link

Cannot find reference 'load_json_dataset' in 'api.py' #72

Closed jenny-hm-lee closed 2 years ago

jenny-hm-lee commented 2 years ago

Cannot find reference 'load_json_dataset' in 'api.py'

Step to reproduce

hackermd commented 2 years ago

@JennyLeePMH thank you for your interest in the dicomweb-client library and for creating the issue.

This functionality has meanwhile been included into the pydicom library (see https://github.com/pydicom/pydicom/pull/862) and is available via pydicom.dataset.Dataset.from_json().

The example should now look as follows:

from pydicom import Dataset

metadata_datasets = [Dataset.from_json(ds) for ds in metadata]

I have updated the example in the documentation accordingly (see 04257537f399e1e89e894296f66f2214b2e39b25)