Ignore:
Timestamp:
01/26/12 16:13:31 (2 years ago)
Author:
mstajdohar
Branch:
default
Message:

Bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Unsupervised/OWNxAnalysis.py

    r9518 r9577  
    110110            ("closeness_centrality", False, "Closeness centrality", NODELEVEL, nx.closeness_centrality), 
    111111            ("betweenness_centrality", False, "Betweenness centrality", NODELEVEL, nx.betweenness_centrality), 
    112             ("current_flow_closeness_centrality", False, "Current flow closeness centrality", NODELEVEL, nx.current_flow_closeness_centrality), 
    113             ("current_flow_betweenness_centrality", False, "Current flow betweenness centrality", NODELEVEL, nx.current_flow_betweenness_centrality), 
    114             ("approximate_current_flow_betweenness_centrality", False, "Approximate current flow betweenness centrality", NODELEVEL, nx.approximate_current_flow_betweenness_centrality), 
     112            ("current_flow_closeness_centrality", False, "Information centrality", NODELEVEL, nx.current_flow_closeness_centrality), 
     113            ("current_flow_betweenness_centrality", False, "Random-walk betweenness centrality", NODELEVEL, nx.current_flow_betweenness_centrality), 
     114            ("approximate_current_flow_betweenness_centrality", False, "Approx. random-walk betweenness centrality", NODELEVEL, nx.approximate_current_flow_betweenness_centrality), 
    115115            ("eigenvector_centrality", False, "Eigenvector centrality", NODELEVEL, nx.eigenvector_centrality), 
    116116            ("eigenvector_centrality_numpy", False, "Eigenvector centrality (NumPy)", NODELEVEL, nx.eigenvector_centrality_numpy), 
     
    305305                    self.analdata[job.name] = job.result 
    306306                    setattr(self, "lbl_" + job.name, ("%.4f" % job.result).rstrip('0').rstrip('.')) 
    307                  
    308         self.job_working.remove(job) 
     307         
     308        if job in self.job_working: 
     309            self.job_working.remove(job) 
     310 
    309311        self.send_data() 
    310312        self.mutex.unlock() 
Note: See TracChangeset for help on using the changeset viewer.