97a543976472f88b7922cc8f8ef3d7c0b6cd3dee,beamfpy/sources.py,PointSource,result,#PointSource#Any#,146

Before Change


        out = fft.ifft(signal[:, newaxis]*delays, axis=0).real/rm
        i = 0
        while i < self.numsamples:
            yield out[i:i+num]
            i += num
        
class MovingPointSource( PointSource ):
    
    point source class for simulations that moves along a given trajectory

After Change


        ind = (-rm/self.c-self.start_t+self.start)*self.sample_freq   
        i = 0
        n = self.numsamples        
        while n:
            n -= 1
            try:
                out[i] = signal[array(0.5+ind*self.up, dtype=long)]/rm
                ind += 1.
                i += 1
                if i == num:
                    yield out
                    i = 0
            except IndexError:
                break
        yield out[:i]            

class MovingPointSource( PointSource ):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: acoular/acoular
Commit Name: 97a543976472f88b7922cc8f8ef3d7c0b6cd3dee
Time: 2012-02-06
Author: sarradj@tu-cottbus.de
File Name: beamfpy/sources.py
Class Name: PointSource
Method Name: result


Project Name: elbayadm/attn2d
Commit Name: c52f6ea4fc8f58b389fd806c117f501fb8234976
Time: 2018-06-15
Author: edunov@apache.org
File Name: fairseq/data.py
Class Name:
Method Name: _make_batches