Skip to content

Commit 8153402

Browse files
committed
allow using plots while helper still not integrated
1 parent 71b3f36 commit 8153402

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/arviz_plots/plots/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ def process_group_variables_coords(dt, group, var_names, filter_vars, coords, al
7575
distribution = distribution.sel(coords)
7676
return distribution
7777

78-
7978
def filter_aes(pc, aes_by_visuals, visual, sample_dims):
79+
reduce_dims, _, artist_aes, ignore_aes = filter_aes_new(pc, aes_by_visuals, visual, sample_dims)
80+
return reduce_dims, artist_aes, ignore_aes
81+
82+
def filter_aes_new(pc, aes_by_visuals, visual, sample_dims):
8083
"""Split aesthetics and get relevant dimensions.
8184
8285
Returns
@@ -192,7 +195,6 @@ def compute_dist(data, reduce_dims, active_dims, kind=None, stats=None):
192195
groupby_dims = [dim for dim in active_dims if dim in da.dims]
193196
if groupby_dims:
194197
reduced_size *= np.prod([np.min(np.unique(da.coords[dim], return_counts=True)[1]) for dim in groupby_dims])
195-
print(f"{var_name=}, {reduced_size=}")
196198
if reduced_size < 100:
197199
ecdf_vars.append(var_name)
198200
elif da.dtype.kind == "f":

0 commit comments

Comments
 (0)