Closed dneise closed 8 years ago
How is one supposed to use these two programs together? Can you post a working example please?
I get this error on the current master and on the current mario_offsetcalculation branches.
Hey, sorry for being late. Next to a minor fix it seems like all the ../Gain data cannot be treated by my routine. I assume the data structure if all the regarding data to cause the exceptions.
You used the offset_calculation entirely correct. offset_calibration works perfectly fine on /Jitter data, for instance (your usage of the latter was correct, too.)
Currently investigating on the bugs.
As expected, it seems like the data structure of all directories is not homogeneous. It seems like data in, e.g. /CoherentNoise and /Gain is saved as
event = ([event1...] , [event2...])
whereas /Jitter ans /Pedestal only contain events of the structure
event = ([event...])
I am not sure about the interpretation of the former structure. Maybe we should ask the group for their opinion.
Update:
It seems like /Gain data consists of events of the kind event = ([event1...] , [event2...]) event = ([event1...] , [event2...], [event3...])
I could recover the calibration method's functionality by calling the 0th/1st/2nd entry but that leaves 2/3 of the raw data untreated. Why are there tuples of events per 'event'?!
Program should work for more kinds of data, have a try ;-)
This is a non issue, since the code it refeers to was largely rewritten
I just tried to execute
offset_calculation.py
in order to get the constants, and thenoffset_calibration.py
in order to apply the calibration to a folder full of raw files. I did actually only want one file to be calibrated, but I did not know how, since I may only specify a<raw_datafile_directory>
and not e.g. _raw_datafilepath.What I did was:
I got this error: