Skip to content

Commit

Permalink
test on times
Browse files Browse the repository at this point in the history
  • Loading branch information
vsmagalhaes committed Nov 8, 2024
1 parent 21e9dd5 commit 8998d50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/astrohack/core/extract_holog.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def _time_avg_pointing_jit(time_vis, pnt_time, dire, dir_cos, enc, pnt_off, tgt)
for i_row in range(n_row):
print(i_row, i_time)
if pnt_time[i_row] < time_vis[i_time] - half_int:
break
continue
else:
i_time = _get_time_index(pnt_time[i_row], i_time, time_vis, half_int)
if i_time < 0:
Expand All @@ -653,7 +653,6 @@ def _time_avg_pointing_jit(time_vis, pnt_time, dire, dir_cos, enc, pnt_off, tgt)
avg_pnt_off[i_time] += pnt_off[i_row]
avg_tgt[i_time] += tgt[i_row]
avg_wgt[i_time] += 1
exit()
exit()

print('weight for average:', avg_wgt)
Expand Down

0 comments on commit 8998d50

Please sign in to comment.