Skip to content

Commit

Permalink
put loop inside try-except
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoughlin committed May 2, 2024
1 parent fc55b2e commit 5d803fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gwemopt/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,10 @@ def get_order(

max_no_observ = min(tilematrix.shape)
for jj in range(max_no_observ):
idx0, idx1 = optimal_points[jj]
# idx0 indexes over the time windows, idx1 indexes over the probabilities
# idx2 gets the exposure id of the tile, used to assign tileexptime and tilenexps
try:
idx0, idx1 = optimal_points[jj]
idx2 = exposureids[idx1]
pamw = tilematrix[idx0][idx1]
total_cost += pamw
Expand Down

0 comments on commit 5d803fc

Please sign in to comment.