Skip to content

Modify lazy loading test to generate random data without complex numbers. #49

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

Merged
merged 1 commit into from
Jun 10, 2025

Conversation

Nush395
Copy link
Contributor

@Nush395 Nush395 commented Jun 9, 2025

This is a proposed solution to allow for netCDF4<1.7.0 support for the tests. If there is a better way to handle this please let me know.

@@ -78,7 +78,7 @@ def test_lazy_loading_distributions_random_netcdf(tmp_path):

def run_lazy_loading_distributions_random(dbentry):
ids = IDSFactory().new("distributions")
fill_consistent(ids)
fill_consistent(ids, skip_complex=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

alternative to this could be to change the default skip_complex value in the fill_consistent helper and then explicitly have a pattern elsewhere of

skipIf with skip_complex=False

Copy link
Collaborator

@maarten-ic maarten-ic left a comment

Choose a reason for hiding this comment

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

LGTM! Complex numbers aren't essential to this test

@olivhoenen olivhoenen merged commit e35187a into iterorganization:develop Jun 10, 2025
10 checks passed
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.

3 participants