seed_coords, roi_ids = scatter_neighborhoods(nb, coords)
verbose(3, "Attempting %i ROI analyses" % len(roi_ids))
elif not args.roi_attr is None:
verbose(3, "Attempting ROI analyses in %s" % args.roi_attr)
roi_ids = args.roi_attr
else:
verbose(3, "Attempting %i ROI analyses" % ds.nfeatures)
roi_ids = None
After Change
coords = ds.fa[attr].value
seed_coords, roi_ids = scatter_neighborhoods(nb, coords)
if not args.roi_attr is None:
if len(args.roi_attr) == 1 and args.roi_attr[0] in ds.fa.keys():
// name of an attribute -> pull non-zeroes
rids = ds.fa[args.roi_attr].value.nonzero()[0]
else: