Skip to content
Snippets Groups Projects
Commit aaa0513f authored by Rodri's avatar Rodri Committed by Rodrigo G. Ruiz
Browse files

fix small bugs

parent ff3bbad6
No related branches found
No related tags found
1 merge request!67Draft: Resolve "Reading summary slices and extracting the rates of each optical module"
......@@ -35,7 +35,7 @@ def main():
doms_rates = {}
for dom in detector.dom_ids:
doms_rates[dom] = np.zeros(n_frames)
doms_rates[dom] = np.zeros(n_slices)
for i in range (n_slices):
rates = get_doms_rates(summary_slices, i)
......@@ -47,7 +47,7 @@ def main():
f.create_dataset("frame_indices",data=np.array(summary_slices.headers.frame_index))
f.create_dataset("frame_times" ,data=np.array(summary_slices.headers.UTC_seconds * 1e9 + summary_slices.headers.UTC_16nanosecondcycles * 16))
for key, value in dictionary.items():
for key, value in doms_rates.items():
f.create_dataset(str(key), data=value)
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment