Skip to content

Commit

Permalink
Flb/issue421 (#438)
Browse files Browse the repository at this point in the history
* Strip leading and trailing white spaces in path to imported ontologies in excelparser
  • Loading branch information
francescalb committed Aug 4, 2022
1 parent f79c1af commit c6b7e53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ontopy/excelparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def create_ontology_from_excel( # pylint: disable=too-many-arguments
except ValueError:
pass
else:
imports.extend(imports_frame["Imported ontologies"].to_list())
# Strip leading and trailing white spaces in path
imports.extend(
imports_frame["Imported ontologies"].str.strip().to_list()
)

# Read datafile TODO: Some magic to identify the header row
conceptdata = pd.read_excel(
Expand Down

0 comments on commit c6b7e53

Please sign in to comment.