def getGaussPeaksFromFloatArray(peak_list_flat): peak_list = grouper(4, map(float, peak_list_flat)) gauss_peaks = [SimuMod.GaussPeak(*p) for p in peak_list] return gauss_peaks
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see <http:#www.gnu.org/licenses/>. ############################################################################ from Lima import Core from Lima import Simulator from Lima import GLDisplay import sys import time peaks = [ Simulator.GaussPeak(924, 512, 100, 100), Simulator.GaussPeak(757, 512, 30, 80), Simulator.GaussPeak(562, 512, 50, 120), Simulator.GaussPeak(652, 512, 10, 130), ] peak_angles = [ 180.0, 110.0, 20.0, 305.0, ] TestAlternatePeriod = 5.0 refresh_time = 0.01 alternate_test_image = False