George-Wu commented on a change in pull request #12331:
URL: https://github.com/apache/beam/pull/12331#discussion_r463808351
##########
File path: sdks/python/apache_beam/io/gcp/dicomio.py
##########
@@ -167,33 +167,40 @@ class DicomSearch(PTransform):
}
"""
- def __init__(self, buffer_size=8, max_workers=5, credential=None):
+ def __init__(
+ self, buffer_size=8, max_workers=5, client=None, credential=None):
"""Initializes DicomSearch.
Args:
credential: # type: Google credential object, if it is specified, the
Http client will use it to create sessions instead of the default.
"""
self.buffer_size = buffer_size
self.max_workers = max_workers
+ if not client:
+ self.client = DicomApiHttpClient()
+ else:
+ self.client = client
Review comment:
Added
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]