-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Hello so the issue I am having is that based off the information from the catalog from ppv_catalog I am setting criteria for the structures I want and the reasoning behind that is that once I run astrodendro and then with SCIMES I still get weather strips identified as structures and the show up in the final cube I want to use as a mask on ppv cubes for my data.
I have tried the following:
ar_ind = []
for i in range(len(AxRs)):
if (abs(PAs[i])>170) and (abs(PAs[i])<181):
ar_ind.append(i)
cat.remove_rows(ar_ind)
for j in range(len(d.leaves)):
for k in ar_ind:
if d.leaves[j].idx == k:
d.leaves.remove(d.leaves[j])
So in this case the criteria is based off position angle and the indices in the catalog are being matched with those in the leaves list and I try to remove the ones I don't want.
However it seems after I print out the result there is no change whatsoever and the structures I tried to remove via list.remove are still there.
Can I get any advice on fixing this? I don't recall seeing any remove function in astrodendro.structure.Structure so I opted to use the method above.