Changeset 3658:bbc2bfe48cb0 in orange


Ignore:
Timestamp:
05/15/07 15:05:01 (7 years ago)
Author:
martinm <martinm@…>
Branch:
default
Convert:
67b8bfce323501f27f3ef0b11e9feea85416ccda
Message:

Leaks less now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Classify/OWNomogram.py

    r3657 r3658  
    510510             
    511511        # calculate prior probability (from self.TargetClassIndex) 
    512         self.bnomogram = BasicNomogram(self, AttValue("Constant", mult*cl.priorProbBetas[0])) 
     512        if self.bnomogram: 
     513            self.bnomogram.destroy_and_init(self, AttValue("Constant", mult*cl.priorProbBetas[0])) 
     514        else: 
     515            self.bnomogram = BasicNomogram(self, AttValue("Constant", mult*cl.priorProbBetas[0]))             
    513516        self.cl.setattr("rulesOrdering", []) 
    514517        for r_i,r in enumerate(cl.rules): 
Note: See TracChangeset for help on using the changeset viewer.