File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/evaluate/src/weathergen/evaluate Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -556,18 +556,16 @@ def common_ranges(
556556 maps_config :
557557 the global plotting configuration with the ranges added and included for each variable (and for each stream).
558558 """
559-
560559 for var in plot_chs :
561560 if var in maps_config :
562561 if not isinstance (maps_config [var ].get ("vmax" ), (int | float )):
563562 list_max = calc_bounds (data_tars , data_preds , var , "max" )
564563 list_max = np .concatenate ([arr .flatten () for arr in list_max ]).tolist ()
565-
566564 maps_config [var ].update ({"vmax" : float (max (list_max ))})
567565
568566 if not isinstance (maps_config [var ].get ("vmin" ), (int | float )):
569567 list_min = calc_bounds (data_tars , data_preds , var , "min" )
570-
568+ list_min = np . concatenate ([ arr . flatten () for arr in list_min ]). tolist ()
571569 maps_config [var ].update ({"vmin" : float (min (list_min ))})
572570
573571 else :
You can’t perform that action at this time.
0 commit comments