Skip to content
Merged
Changes from 1 commit
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
10 changes: 8 additions & 2 deletions petab/v1/visualize/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,14 @@ def parse_from_id_list(
"""
if ids_per_plot is None:
# this is the default case. If no grouping is specified,
# all observables are plotted. One observable per plot.
unique_obs_list = self._data_df[OBSERVABLE_ID].unique()
# each group_by category will be plotted on a separate plot
unique_obs_list = self._data_df[
{
"dataset": DATASET_ID,
"observable": OBSERVABLE_ID,
"simulation": SIMULATION_CONDITION_ID,
}[group_by]
].unique()
ids_per_plot = [[obs_id] for obs_id in unique_obs_list]

if group_by == "dataset" and DATASET_ID not in self._data_df:
Expand Down