Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions petab/v1/visualize/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,11 @@ def from_df(
if col in VISUALIZATION_DF_SUBPLOT_LEVEL_COLS:
entry = vis_spec.loc[:, col]
entry = np.unique(entry)
if entry.size > 1:
if entry.size > 1 and not all(pd.isna(x) for x in entry):
warnings.warn(
f"For {PLOT_ID} {plot_id} in column "
f"{col} contradictory settings ({entry})"
f". Proceeding with first entry "
f"({entry[0]}).",
f"{col} contradictory settings ({entry}). "
f"Proceeding with first entry ({entry[0]}).",
stacklevel=2,
)
entry = entry[0]
Expand Down
Loading