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

Make Multi closure internal loader data class #2111

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

comane
Copy link
Member

@comane comane commented Jun 11, 2024

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

Copy link
Contributor

@andreab1997 andreab1997 left a 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
Copy link
Contributor

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?

Copy link
Member Author

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
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is black doing this?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes exactly

@comane
Copy link
Member Author

comane commented Jun 12, 2024

are all the functions affected by this change already unit tested?

No to my understanding the closuretests module is not really covered by tests right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants