Skip to content

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

Merged
olivhoenen merged 1 commit intoiterorganization:developfrom
Nush395:nush-dev
Jun 10, 2025
Merged

Modify lazy loading test to generate random data without complex numbers.#49
olivhoenen merged 1 commit intoiterorganization:developfrom
Nush395:nush-dev

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.

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