Skip to content

Commit 2bdd24b

Browse files
authored
Merge branch 'main' into switch-ror
2 parents cc9ac54 + 381e547 commit 2bdd24b

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ dependencies = [
9090
"typing_extensions",
9191
"rdflib",
9292
"obographs>=0.0.8",
93-
"sssom_pydantic>=0.1.1",
93+
"sssom_pydantic>=0.2.0",
9494
"pytz",
9595
]
9696

@@ -101,11 +101,11 @@ tests = [
101101
"coverage[toml]",
102102
]
103103
docs = [
104-
"sphinx>=8",
104+
"sphinx>=8,<9",
105105
"sphinx-rtd-theme>=3.0",
106106
"sphinx-click",
107107
"sphinx_automodapi",
108-
"sphinx_toolbox",
108+
"sphinx_toolbox<=4.0.0",
109109
]
110110
lint = [
111111
"ruff",

src/pyobo/api/xrefs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ def get_semantic_mappings(
124124
)
125125
if converter is None:
126126
converter = get_converter()
127-
return [row_to_semantic_mapping(row, converter=converter) for _, row in df.iterrows()]
127+
return [
128+
# TODO upstream this into sssom-pydantic?
129+
row_to_semantic_mapping({k: v for k, v in row.items() if pd.notna(v)}, converter=converter)
130+
for _, row in df.iterrows()
131+
]
128132

129133

130134
def get_mappings_df(

0 commit comments

Comments
 (0)