From 19d60c834a6157b99f719e8e392eb872455a2936 Mon Sep 17 00:00:00 2001 From: JoseEspinosa Date: Thu, 1 Feb 2018 15:55:20 +0100 Subject: [PATCH] Mapping file reading was not stripping "\r" --- pergola/mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pergola/mapping.py b/pergola/mapping.py index 2333dc2..7888f16 100644 --- a/pergola/mapping.py +++ b/pergola/mapping.py @@ -153,7 +153,7 @@ def _mapping_config(self, file_map): row = row.replace('\"','') l=row.split(">") file_term = l[0].split(":")[1].rstrip() - pergola_term = l[1].split(":")[1].rstrip('\t\n') + pergola_term = l[1].split(":")[1].rstrip('\t\n\r') # Validation of the ontology term if pergola_term not in _p_ontology_terms: