File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -861,9 +861,15 @@ def parse_from_id_list(
861861 """
862862 if ids_per_plot is None :
863863 # this is the default case. If no grouping is specified,
864- # all observables are plotted. One observable per plot.
865- unique_obs_list = self ._data_df [OBSERVABLE_ID ].unique ()
866- ids_per_plot = [[obs_id ] for obs_id in unique_obs_list ]
864+ # each group_by category will be plotted on a separate plot
865+ unique_ids_list = self ._data_df [
866+ {
867+ "dataset" : DATASET_ID ,
868+ "observable" : OBSERVABLE_ID ,
869+ "simulation" : SIMULATION_CONDITION_ID ,
870+ }[group_by ]
871+ ].unique ()
872+ ids_per_plot = [[id_ ] for id_ in unique_ids_list ]
867873
868874 if group_by == "dataset" and DATASET_ID not in self ._data_df :
869875 raise ValueError (
You can’t perform that action at this time.
0 commit comments