Skip to content

Commit

Permalink
Shuffle list in place
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel3834 committed Oct 26, 2024
1 parent 5f436e4 commit c701bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mop/management/commands/fit_need_events_PSPL.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def select_random_events(target_list, max_nevents):
Function to select a random set of max_nevents from the list provided
"""
rng = np.random.default_rng()
target_list = rng.shuffle(target_list)
rng.shuffle(target_list)
selected_targets = target_list[0:max_nevents]

return selected_targets
Expand Down

0 comments on commit c701bd4

Please sign in to comment.