Hi,
I have a 4D data cube and several dendrogram structures. Is there any method to convert the data*mask to subset so we can trace different dendrogram structures in 3d volume rendering?
I tried following code but it didn't work:
d = Dendrogram.load_from(filename)
dc = DataCollection()
dc.append(load_data(cubel))
catalog=dc[0]
mask = d[105].get_mask()
state = catalog['PRIMARY']*mask
subset_group =dc.new_subset_group('mask', state)
with ValueError:
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Any help would be appreciated, thank you.