-
Notifications
You must be signed in to change notification settings - Fork 7
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
Make Multi closure internal loader data class #2111
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for this, it looks good. Just a question, are all the functions affected by this change already unit tested?
internal_multiclosure_dataset_loader, | ||
_internal_max_reps=None, | ||
_internal_min_reps=20, | ||
internal_multiclosure_dataset_loader, _internal_max_reps=None, _internal_min_reps=20 |
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.
Why is this on a single line now?
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.
black
internal_multiclosure_data_loader, | ||
_internal_max_reps=None, | ||
_internal_min_reps=20, | ||
internal_multiclosure_data_loader, _internal_max_reps=None, _internal_min_reps=20 |
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.
Same here
_internal_max_reps + SAMPLING_INTERVAL, | ||
SAMPLING_INTERVAL, | ||
) | ||
range(_internal_min_reps, _internal_max_reps + SAMPLING_INTERVAL, SAMPLING_INTERVAL) |
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.
Is black
doing this?
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.
yes exactly
No to my understanding the closuretests module is not really covered by tests right now. |
The internal loader for a multiclosure test returns a data class object rather than a 4-D tuple.
This could be useful, for instance, when having to adapt or generalise for inconsistent closure tests