We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Subplot.from_df
1 parent 4016147 commit 6935b8bCopy full SHA for 6935b8b
1 file changed
petab/v1/visualize/plotting.py
@@ -211,12 +211,11 @@ def from_df(
211
if col in VISUALIZATION_DF_SUBPLOT_LEVEL_COLS:
212
entry = vis_spec.loc[:, col]
213
entry = np.unique(entry)
214
- if entry.size > 1:
+ if entry.size > 1 and not all(pd.isna(x) for x in entry):
215
warnings.warn(
216
f"For {PLOT_ID} {plot_id} in column "
217
- f"{col} contradictory settings ({entry})"
218
- f". Proceeding with first entry "
219
- f"({entry[0]}).",
+ f"{col} contradictory settings ({entry}). "
+ f"Proceeding with first entry ({entry[0]}).",
220
stacklevel=2,
221
)
222
entry = entry[0]
0 commit comments