Skip to content

Commit 06cda78

Browse files
committed
fixing bug pediatric exporter in logging
1 parent e01f836 commit 06cda78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exporter-pediatric.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def __call__(self, parser, namespace, values, option_string=None):
168168
log.debug("Collection %s identified as non-cancer collection due to ORPHA code %s" % (collection['id'], d))
169169
non_cancer = True
170170
else:
171-
log.warning("Collection %s has invalid ORPHA code %s" % (d))
171+
log.warning("Collection %s has invalid ORPHA code %s" % (collection['id'], d))
172172

173173
pediatric = False
174174
pediatricOnly = False
@@ -208,7 +208,7 @@ def __call__(self, parser, namespace, values, option_string=None):
208208
pediatric = True
209209
if 'age_high' in collection and collection['age_high'] < age_max:
210210
pediatricOnly = True
211-
log.debug("Pediatric-only collection detected: %s, age range: %d-%d, diags: %s"%(collection['id'], collection.get('age_low'), collection.get('age_high'), diags + diag_ranges))
211+
log.debug(f"Pediatric-only collection detected: {collection['id']}, age range: {collection.get('age_low')}-{collection.get('age_high')}, diags: {diags + diag_ranges}")
212212

213213
if pediatric:
214214
log.info(f"Pediatric collection detected: {collection['id']}, age range: {collection.get('age_low')}-{collection.get('age_high')}, diags: {diags + diag_ranges}")

0 commit comments

Comments
 (0)