Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDWilliams committed Dec 6, 2023
1 parent eac9fdf commit 14f0f18
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tr_sys/tr_ars/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def remove_blocked(mesg, blocklist=None):
aux_graphs_to_remove=[]
for aux_id, aux_graph in aux_graphs.items():
edges = get_safe(aux_graph,"edges")
overlap = list(set(edges) & set(nodes_to_remove))
overlap = list(set(edges) & set(edges_to_remove))
if len(overlap)>0:
aux_graphs_to_remove.append(aux_id)
for aux_id in aux_graphs_to_remove:
Expand Down Expand Up @@ -698,11 +698,14 @@ def remove_blocked(mesg, blocklist=None):
support_graphs.remove(sg)
for analysis in analyses_to_remove:
analyses.remove(analysis)

if len(analysis)<1:
#if removing the bad analyses leaves us with a result that would have none, we remove the result
results_to_remove.append(result)
for result in results_to_remove:
results.remove(result)



blocked_version.status='D'
blocked_version.code=200
blocked_version.data=data
Expand Down

0 comments on commit 14f0f18

Please sign in to comment.