You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hi @e-koch, thanks for the reply and sorry for my late reply. I just picked this project back up after months of other things I needed to work on.
For pruning by PA I tried the following code:
` def param(ind):
def result(structure, index=None, value=None):
return structure.idx == ind
return result
d = Dendrogram.prune(d,is_independent=param(ar_ind)) `
Where ind is the list of indices that I want to filter out. I've tried this out before and my code just gets a 'Killed' output. Would I have to specify what part of the structure I am trying to prune such as structure.leaves or something like that?
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.
The text was updated successfully, but these errors were encountered: