From e93a1c6813594ff6a4c7bd8371a08a8185c203c5 Mon Sep 17 00:00:00 2001 From: Kori Kuzma Date: Wed, 15 Jan 2025 19:21:23 -0500 Subject: [PATCH] fix --- src/gene/query.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gene/query.py b/src/gene/query.py index db9d21f..11bbcbc 100644 --- a/src/gene/query.py +++ b/src/gene/query.py @@ -422,10 +422,11 @@ def _create_concept_mapping( err_msg = f"Namespace prefix not supported: {source}" raise ValueError(err_msg) from e - system = NAMESPACE_TO_SYSTEM_URI["source"] - return ConceptMapping( - coding=Coding(code=code(concept_id), system=system), relation=relation + coding=Coding( + code=code(concept_id), system=NAMESPACE_TO_SYSTEM_URI[source] + ), + relation=relation, ) gene_obj = MappableConcept(