Skip to content

Commit

Permalink
Reduce fs client mem usage by not loading pixels into dicom_datasets
Browse files Browse the repository at this point in the history
Query/retrieve services don't return pixel data, and all fetch operations in the filesystem client copy the full files that include the pixel data.
  • Loading branch information
dillonwilliams committed Apr 5, 2019
1 parent 3b8f868 commit 4bccf7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pacsman/filesystem_dev_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, dicom_dir: str, dicom_source_dir: str, *args, **kwargs) -> No

def _read_and_add_data_set(self, filename: str) -> None:
filepath = self._filepath(filename)
self._add_dataset(dcmread(filepath), filepath)
self._add_dataset(dcmread(filepath, stop_before_pixels=True), filepath)

def _add_dataset(self, dataset: Dataset, filepath: str = None) -> None:
if filepath is None:
Expand Down

0 comments on commit 4bccf7f

Please sign in to comment.