Skip to content

use masked arrays for storing outcomes#176

Merged
EwoutH merged 17 commits intomasterfrom
masked_arrays
Sep 26, 2022
Merged

use masked arrays for storing outcomes#176
EwoutH merged 17 commits intomasterfrom
masked_arrays

Conversation

@quaquel
Copy link
Copy Markdown
Owner

@quaquel quaquel commented Sep 23, 2022

resolves #148

Outcomes are now stored in masked arrays. If get_results is called and there are no masked entries left (i.e., all experiments completed successfully), the arrays are unmasked. Otherwise, masked arrays are returned and a warning is logged.

this PR also does some more refactoring of callback.py, adds some unit tests, and does a bit of cleaning.

@quaquel quaquel marked this pull request as draft September 23, 2022 08:15
@coveralls
Copy link
Copy Markdown

coveralls commented Sep 23, 2022

Coverage Status

Coverage increased (+0.9%) to 81.585% when pulling f58443c on masked_arrays into 6c1b55c on master.

@quaquel quaquel marked this pull request as ready for review September 23, 2022 10:27
@quaquel quaquel requested a review from EwoutH September 23, 2022 10:29
@EwoutH
Copy link
Copy Markdown
Collaborator

EwoutH commented Sep 23, 2022

Nice work, I will take an in depth look after #170 is merged.

Please try to keep PRs to one single subject by the way, that makes both reviewing easier and bugs are easier traced back, especially as time passes.

I must say, we are making quite some progress in only a few weeks!

quaquel and others added 7 commits September 23, 2022 23:50
resolves #148

Outcomes are now stored in masked arrays. If get_results is called and there are no masked entries left (i.e., all experiments completed successfully), the arrays are unmasked. Otherwise, masked arrays are returned and a warning is logged.

This commit also does some more refactoring of callback.py, adds some unit tests, and does a bit of cleaning.

Co-Authored-By: Jan Kwakkel <[email protected]>
@EwoutH EwoutH added this to the 2.3.0 milestone Sep 24, 2022
@EwoutH EwoutH added the bug label Sep 24, 2022
Copy link
Copy Markdown
Collaborator

@EwoutH EwoutH left a comment

Choose a reason for hiding this comment

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

Looks great overall! I added a few nitpicks.

@quaquel
Copy link
Copy Markdown
Owner Author

quaquel commented Sep 25, 2022

should be ready now to be merged

@EwoutH EwoutH merged commit 24fc763 into master Sep 26, 2022
@EwoutH
Copy link
Copy Markdown
Collaborator

EwoutH commented Sep 26, 2022

It's in!

@quaquel quaquel deleted the masked_arrays branch October 28, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ValueError: cannot convert float to NaN

3 participants