Skip to content
Snippets Groups Projects
Commit 4a3b45c8 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix hit sorting

parent 6f1d8dc3
No related branches found
No related tags found
No related merge requests found
......@@ -109,10 +109,11 @@ class ZTPlot(kp.Module):
doms = set(hits.dom_id)
fontsize = 16
hits = hits.append_columns('multiplicity', np.ones(len(hits)))
hits = hits.append_columns('multiplicity',
np.ones(len(hits))).sorted(by='time')
for dom in doms:
dom_hits = hits[hits.dom_id == dom].sorted(by='time')
dom_hits = hits[hits.dom_id == dom]
mltps, m_ids = count_multiplicities(dom_hits.time)
hits['multiplicity'][hits.dom_id == dom] = mltps
......
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