Changeset 12982 for fact/tools


Ignore:
Timestamp:
03/01/12 12:33:18 (13 years ago)
Author:
neise
Message:
renamed SignalGenerator.py to generator.py 
File:
1 moved

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/pyfact/generator.py

    r12977 r12982  
    7272            signal[start:pos] += np.linspace(0., height, self.triangle_rise)
    7373            signal[pos:stop] += np.linspace(height, 0. , self.triangle_fall)
    74         for spike in self.spikes:
    75             signal[spike[0]] += spike[1]
     74        if 'spike' in self.options:
     75            for spike in self.spikes:
     76                signal[spike[0]] += spike[1]
    7677        return signal
    7778
Note: See TracChangeset for help on using the changeset viewer.