-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Do not generate default repetition ids if use_repetition_ids=False #5419
Conversation
I think the |
if self.use_repetition_ids: | ||
loop_size = abs(self.repetitions) | ||
if not self.repetition_ids: | ||
object.__setattr__(self, 'repetition_ids', self._default_repetition_ids()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could all these be consolidated by having default_repetition_ids
return None if use_repetition_ids
is false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to do the self.use_repetition_ids
check in self._default_repetition_ids
.
@daxfohl, I can't seem to re-request review from you, but this is ready for review again after addressing your comments. PTAL |
lgtm |
@daxfohl, thanks for the review! Looks like you commented instead of approving. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #5418