George-Wu commented on a change in pull request #12331:
URL: https://github.com/apache/beam/pull/12331#discussion_r459591158
##########
File path: sdks/python/apache_beam/io/gcp/dicomio.py
##########
@@ -157,27 +172,33 @@ class ConvertPubsubToQido(beam.DoFn):
def process(self, element):
# Check if all required keys present.
required_keys = [
- 'projects', 'locations', 'datasets', 'dicomStores', 'dicomWeb',
- 'studies', 'series', 'instances'
- ]
-
+ 'projects',
+ 'locations',
+ 'datasets',
+ 'dicomStores',
+ 'dicomWeb',
+ 'studies',
+ 'series',
+ 'instances'
+ ]
+
entries = element.split('/')
valid = True
-
+
if len(entries) != 15:
Review comment:
Removed large nesting
----------------------------------------------------------------
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]