Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added study.shuffle_exps() feature #202

Merged
merged 3 commits into from
Jan 14, 2025
Merged

added study.shuffle_exps() feature #202

merged 3 commits into from
Jan 14, 2025

Conversation

optimass
Copy link
Collaborator

No description provided.

@optimass optimass requested a review from recursix January 13, 2025 17:42
def shuffle_exps(self):
"""Shuffle the experiments in the study."""
import random

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for pickyness.
can you put random as general import
also, instead of in-place, could we put a copy. it would be safer in case a user is having a copy of that ref somewhere it would be unexpectedly shuffled.

@recursix recursix merged commit 0819ae4 into main Jan 14, 2025
2 of 3 checks passed
@recursix recursix deleted the shuffle_exps branch January 14, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants