Commit 86b34846 authored by Daniel Williams's avatar Daniel Williams
Browse files

Made the swig row be deleted at the end of every _generate.

parent 6909a351
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ class MDCSet():
           The waveform which should be added to the MDC set.

        """
        del waveform.row
        self.waveforms.append(waveform)
        self.times = np.append(self.times, waveform.time)

@@ -196,7 +197,7 @@ class MDCSet():
                print a, getattr(row,a)
                continue # the structure is different than the TableRow
        try:
            self.swig_row.numrel_data = row.numrel_data
            swig_row.numrel_data = row.numrel_data
        except:
            pass
        hp, hx = lalburst.GenerateSimBurst(swig_row, 1.0/rate)
@@ -204,7 +205,9 @@ class MDCSet():
        # DW: I tried that, and it doesn't seem to work :/
        hp0, hx0 = lalburst.GenerateSimBurst(swig_row, 1.0/rate)
        self.hp, self.hx, self.hp0, self.hx0 = hp, hx, hp0, hx0
        lalburst.DestroySimBurst(swig_row)
        #lalburst.DestroySimBurst(swig_row)
        del swig_row
        
    
    def _getDetector(self, det):
        """