Skip to content

Avoid attempt to fill nan on integer array - #1

Open
themrzmaster wants to merge 1 commit into
ratschlab:mainfrom
themrzmaster:patch-1
Open

themrzmaster wants to merge 1 commit into
ratschlab:mainfrom
themrzmaster:patch-1

Conversation

@themrzmaster

@themrzmaster themrzmaster commented Feb 21, 2021

Copy link
Copy Markdown

On https://github.com/ratschlab/bnn_priors/blob/main/bnn_priors/exp_utils.py#L523 it fills the array with NaNs, but it fails when the array type is int (https://stackoverflow.com/questions/12708807/numpy-integer-nan). I propose to always save scalars as floats avoiding this exception.

@fortuin
fortuin requested a review from rhaps0dy May 10, 2021 15:25
@fortuin

fortuin commented May 10, 2021

Copy link
Copy Markdown
Collaborator

Sorry, just seeing this. Looks sensible to me, but let's see what @rhaps0dy says.

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.

2 participants