#configure what animations you want to see
#to pause animation, click on it

#show camera1 dart animation
showView1 = True
#show camera2 dart animation
showView2 = True

#compare both results in two windows
showView3 = False


if showView1:
    view = DvsDataViewer(handler)
else:
    handler.calculateAllPackages()


#left side
#fisrt event: 1648
#last event: 3742
#datafile2 = '../ITQ-2015-06-25/links-02.aedat'
#datafile2 = '../testdata-2015-07-02/sync33-calibrateandhit-master.aedat'
#datafile2 = '../FinalSetup-2015-07-06/DVS128-2015-07-06T19-58-38+0200-0123-0.aedat'
datafile2 = '../FinalSetup-2015-07-06/DVS128-2015-07-06T20-12-56+0200-0123-0.aedat'

calculator2 = Calculator()
#open file handler with data calculator and aedata file
handler2 = DvsDataHandler(datafile2,calculator2)

#set beginning event index to start with
#configure what animations you want to see
#to pause animation, click on it

#show camera1 dart animation
showView1 = True
#show camera2 dart animation
showView2 = True

#compare both results in two windows
showView3 = False

if showView1:
    view = DvsDataViewer(handler)
else:
    handler.calculateAllPackages()

#left side
#fisrt event: 1648
#last event: 3742
#datafile2 = '../ITQ-2015-06-25/links-02.aedat'
#datafile2 = '../testdata-2015-07-02/sync33-calibrateandhit-master.aedat'
#datafile2 = '../FinalSetup-2015-07-06/DVS128-2015-07-06T19-58-38+0200-0123-0.aedat'
datafile2 = '../FinalSetup-2015-07-06/DVS128-2015-07-06T20-12-56+0200-0123-0.aedat'

calculator2 = Calculator()
#open file handler with data calculator and aedata file
handler2 = DvsDataHandler(datafile2, calculator2)

#set beginning event index to start with
#handler2.packageStart = 2864484