Skip to content

Commit

Permalink
debug indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
FaroutYLq committed Dec 18, 2023
1 parent d3adbb7 commit 87ae1bc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions saltax/match/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def pair_salt_to_simu(truth, match, events_simu, events_salt):
#truth_filtered, match_filtered = filter_out_not_found(truth_filtered, match_filtered)

ind_simu_matched_to_truth = pair_events_to_filtered_truth(truth_filtered, events_simu)
events_simu_matched_to_truth = events_simu[ind_simu_matched_to_truth>=0]
events_simu_matched_to_truth = events_simu[ind_simu_matched_to_truth[ind_simu_matched_to_truth>=0]]

ind_salt_matched_to_simu = pair_events_to_matched_simu(events_simu_matched_to_truth,
events_salt)
Expand All @@ -190,11 +190,10 @@ def match(truth, match, events_simu, events_salt):
"""
ind_salt_matched_to_simu, \
ind_simu_matched_to_truth, \
truth_filtered, \
match_filtered = pair_salt_to_simu(truth, match, events_simu, events_salt)
_, _ = pair_salt_to_simu(truth, match, events_simu, events_salt)

events_simu_matched_to_truth = events_simu[ind_simu_matched_to_truth>=0]
events_salt_matched_to_simu = events_salt[ind_salt_matched_to_simu>=0]
events_simu_matched_to_salt = events_simu_matched_to_truth[ind_salt_matched_to_simu]
events_simu_matched_to_truth = events_simu[ind_simu_matched_to_truth[ind_simu_matched_to_truth>=0]]
events_salt_matched_to_simu = events_salt[ind_salt_matched_to_simu[ind_salt_matched_to_simu>=0]]
events_simu_matched_to_salt = events_simu_matched_to_truth[ind_salt_matched_to_simu>=0]

return events_salt_matched_to_simu, events_simu_matched_to_salt

0 comments on commit 87ae1bc

Please sign in to comment.